🎴 Flashcard Mode
Java Programming Fundamentals
Card1 / 11
Mastered0
Review0
QuestionClick to flip
An exception can be caught by a catch block with an argument type that is a superclass of the thrown exception.
AnswerClick to flip back
A
True
💡 Explanation:
In exception handling hierarchies, a catch block can catch exceptions of its declared type or any subclass of that type due to polymorphism. If you catch Exception ( superclass), it will also catch IOException, SQLException, etc. (subclasses). This is a fundamental principle of polymorphic exception handling in object-oriented programming.