A

Admin • 828.03K Points
Coach

Q. In Java, can a "try" block have multiple "catch" blocks?

  • (A) No, a "try" block can have only one "catch" block
  • (B) Only if the "try" block is marked as "static"
  • (C) Yes, a "try" block can have multiple "catch" blocks to catch different types of exceptions
  • (D) Only if the "catch" blocks are marked as "final"
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Java
  • Hashtags:

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.