Multiple choice technology programming languages

If a catch statement is written to catch exception objects of a base class type, it can also catch all _____ derived from that base class

  1. Exceptions for objects

  2. Objects of classes

  3. Arguments

  4. Errors

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

In exception handling, catching a base class type will catch all derived class exceptions due to polymorphism. This is because a derived class object 'is-a' base class object, so the base class catch block can handle it. This enables handling groups of related exceptions with a single handler.