Multiple Choice
Which statement about handling exceptions is true?
A) If an exception has no handler, the error will be ignored.
B) Statements that may cause exceptions should be placed inside a catch clause.
C) Statements to handle exceptions should be placed inside a try clause
D) If an exception has no handler, the program will be terminated.
Correct Answer:

Verified
Correct Answer:
Verified
Q20: Which method of an exception object will
Q21: Insert the missing code in the following
Q22: Consider the following code snippet: Scanner in
Q23: Assuming that inputFile is a Scanner object
Q24: Consider the following code snippet: throw new
Q27: Consider the following code snippet: System.out.printf("%-12s%8.2f",description,totalPrice);<br>Which of
Q28: Insert the missing code in the following
Q29: Which of the following statements about using
Q30: Consider the following code snippet. Scanner inputFile
Q101: The _ method of the Character class