Answer the following statements true (T) or false (F)

1. The finally block contains code to be executed whether or not an exception is thrown in a try block.
2. A stream is an object that allows for the flow of data between your program and some I/O device or
some file.
3. Every input file and every output file used by your program has only one name which is the same
name used by the operating system.
4. The FileNotFoundException is a descendant of the class IOException.
5. When your program is finished writing to a file, it should close the stream connected to that file.

1. True
2. True
3. False
4. True
5. True

Computer Science & Information Technology

You might also like to view...

You can add your own commonly misspelled words to the AutoCorrect list of words that is built into Word

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the speed of a computer running at 266 MHz with a multiplier of two?

A. 2 MHz B. 133 MHz C. 266 MHz D. 532 MHz

Computer Science & Information Technology