Multiple Choice
Consider the following code snippet: try
{
File inputFile = new File(filename) ;
Scanner in = new Scanner(inputFile) ;
) . .
}
Catch (Exception
A) This code will not catch a FileNotFoundException that occurs in the try block.
B) This code will pass any exceptions back to its caller.
C) This code will catch exceptions that occur in the try block but will do nothing about the exceptions.
D) This code will not catch any exceptions that occur in the try block.
E) {
}
Which of the following statements about this code is correct?
Correct Answer:

Verified
Correct Answer:
Verified
Q33: Consider the following code snippet: throw IllegalStateException("This
Q34: Which String class method will remove spaces
Q35: Insert the missing code in the following
Q36: Your program must read in an existing
Q37: Which of the following code snippets about
Q39: Assume that inputFile is a Scanner object
Q40: Which method of an exception object will
Q41: Which return value of the JFileChooser object's
Q42: Insert the missing code in the following
Q43: Consider the following code snippet: Scanner in