Solved

Consider the Following Code Snippet

Question 93

Multiple Choice

Consider the following code snippet:
Public double[] readInputFile(String filename) throws IOException
{
File inputFile = new File(filename) ;
Scanner in = new Scanner(inputFile) ;
Try
{
ReadData(in) ;
Return data;
}
Finally
{
InputFile.close() ;
}
}
Which of the following statements about this method's code is correct?


A) The method will never execute the finally clause if an IOException exception occurs in this method.
B) This method will pass any type of exception back to the caller.
C) This method will pass any IOException-type exception back to the caller.
D) Any exceptions that occur in this method will be suppressed.

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