Vidyalelo
Java Programming · Q9

Exceptions

Programming · Java Programming · question 9

Q9

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
Answer
D.
To specify the exception type

Answer: Option C

Solution

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