Solved

Consider the Following Code Snippet: Try

Question 38

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions