Examveda
Examveda

In Java, can a method declare both "throws" and "throw" statements?

A. No, a method can only declare one of them

B. Only if the method is marked as "static"

C. Yes, a method can declare both "throws" and "throw" statements

D. Only if the method is marked as "final"

Answer: Option C


This Question Belongs to Java Program >> Exceptions

Join The Discussion

Related Questions on Exceptions