adplus-dvertising
frame-decoration

Question

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)

Answer: (a).a parent class of the thrown class

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. 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_________