Question: In Java can a catch block catch exceptions of a subclass type before catching exceptions of a superclass type? Question 1 Answer a . Only

In Java can a catch block catch exceptions of a subclass type before catching exceptions of a superclass type?
Question 1Answer
a.
Only if the superclass is marked as static
b.
Only if the subclass is marked asfinal
c.
Yes, a catch block can catch exceptions of a subclass type before a super class type
d.
No, a catch block must catch exceptions of a superclass type first

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!