Solved

Consider the Following Code Snippet

Question 82

Multiple Choice

Consider the following code snippet:
Try
{
File inputFile = new File(filename) ;
Scanner in = new Scanner(inputFile) ;
) . .
}
Catch (Exception e) {
}
Which of the following statements about this code is correct?


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.

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents