Examveda
Examveda

In Java, can a "catch" block catch exceptions of a subclass type before catching exceptions of a superclass type?

A. Only if the superclass is marked as "static"

B. Only if the subclass is marked as "final"

C. Yes, a "catch" block can catch exceptions of a subclass type before a superclass type

D. No, a "catch" block must catch exceptions of a superclass type first

Answer: Option C


This Question Belongs to Java Program >> Exceptions

Join The Discussion

Related Questions on Exceptions