Examveda
Examveda

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"

Answer: Option C


This Question Belongs to Java Program >> Exceptions

Join The Discussion

Related Questions on Exceptions