Q23
In Java, can a method declare "throws" for a checked exception that is not thrown in the method body?
A.
Only if the exceptions are marked as "final"
B.
Only if the method is marked as "static"
C.
Yes, a method can declare "throws" for checked exceptions that are not thrown in the method body
AnswerD.
No, a method must throw all the exceptions it declares
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board