Vidyalelo
Java Programming · Q21

Exceptions

Programming · Java Programming · question 21

Q21

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
Answer
D.
Only if the method is marked as "final"

Answer: Option C

Solution

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