Multiple Choice
Which of the following code snippets about exceptions is correct?
A) public void read(String filename) throws IOException, ClassNotFoundException
B) public void read(String filename) throw IOException, ClassNotFoundException
C) public void read(String filename) throw (IOException, ClassNotFoundException)
D) public void read(String filename) throws IOException, throws ClassNotFoundException
Correct Answer:

Verified
Correct Answer:
Verified
Q32: Insert the missing code in the following
Q33: Consider the following code snippet: throw IllegalStateException("This
Q34: Which String class method will remove spaces
Q35: Insert the missing code in the following
Q36: Your program must read in an existing
Q38: Consider the following code snippet: try<br>{<br>File inputFile
Q39: Assume that inputFile is a Scanner object
Q40: Which method of an exception object will
Q41: Which return value of the JFileChooser object's
Q42: Insert the missing code in the following