Examveda
Examveda

What is the purpose of the "throws" keyword in Java method declaration?

A. To indicate that the method will throw an unchecked exception

B. To specify the exception message

C. To indicate that the method may throw a checked exception

D. To specify the exception type

Answer: Option C


This Question Belongs to Java Program >> Exceptions

Join The Discussion

Related Questions on Exceptions