MCQ Practice

If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________

A

a parent class of the thrown class

B

a child class of the thrown class

C

either (a) or (b) D. neither (a) nor (b)

Correct Answer: A