Question: Question: Which of the following statements about Java exception handling is true? A) Checked exceptions must be caught or declared in the method signature. B)
Question: Which of the following statements about Java exception handling is true?
A) Checked exceptions must be caught or declared in the method signature.
B) Unchecked exceptions must be explicitly handled.
C) A method can throw multiple types of checked exceptions without declaring them.
D) Catch blocks can only handle exceptions of the same type as thrown.
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided below The correct option is A Checked exceptions must be caught or declared in the method signa... View full answer
Get step-by-step solutions from verified subject matter experts
