V

Vijay Sangwan • 28.62K Points
Instructor II

Q. In Java, can a "catch" block catch multiple exceptions?

  • (A) No, a "catch" block can only catch one exception
  • (B) Only if the "catch" block is marked as "static"
  • (C) Only if the exceptions are marked as "final"
  • (D) Yes, a "catch" block can catch multiple exceptions using the pipe ( | ) symbol
  • Correct Answer - Option(D)
  • Views: 15
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics