Vidyalelo
Java Programming · Q4

Exceptions

Programming · Java Programming · question 4

Q4

In Java, can a method declare multiple exceptions using the "throws" keyword?

A.
Only if the method is marked as "static"
B.
Yes, a method can declare multiple exceptions separated by commas
Answer
C.
Only if the exceptions are marked as "final"
D.
Only if the method is marked as "final"

Answer: Option B

Solution

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