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
Q6: Which of the following statements about exception
Q36: Your program must read in an existing
Q55: Consider the following code snippet. Scanner in
Q70: Consider the following code snippet. Scanner in
Q73: Consider the following code snippet: Scanner in
Q82: Which of the following statements about the
Q87: The Java compiler requires that your program
Q90: Consider the following code snippet written in
Q97: Insert the missing code in the following
Q101: Consider the following code snippet: Scanner in