Examveda
Examveda

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

A. Yes, a "catch" block can catch exceptions of a superclass type

B. No, a "catch" block can only catch exceptions of the exact type

C. Only if the superclass is marked as "final"

D. Only if the subclass is marked as "static"

Answer: Option A


This Question Belongs to Java Program >> Exceptions

Join The Discussion

Related Questions on Exceptions