Multiple choice technology programming languages

If a catch handler is written to catch exception objects of a superclass type, it can also catch all objects of that class's subclasses.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Exception handling in Java follows polymorphism. A catch block designed to handle a superclass exception type will also successfully catch any exception object that inherits from that superclass.