Vidyalelo
Java Programming · Q8

Exceptions

Programming · Java Programming · question 8

Q8

In Java, can a method throw any checked exception without declaring it using "throws"?

A.
Only if the exception is marked as "static"
B.
Only if the method is marked as "final"
C.
No, a method must declare checked exceptions using the "throws" keyword
D.
Yes, a method can throw any checked exception without declaration
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board