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:

Verified
Correct Answer:
Verified
Q71: The Scanner class's _ method is used
Q72: Which of the following statements about exception
Q73: Consider the following code snippet: Scanner in
Q74: If the current method in a program
Q75: Insert the missing code in the following
Q77: Insert the missing code in the following
Q78: Consider the following code snippet: Scanner in
Q79: Which of the following statements about a
Q80: Select the missing expression in the code
Q81: Consider the following code snippet: PrintWriter outputFile