Is the catch clause in java arranged before the subclass or the parent class? Why?

Subclasses come first because they are executed in order. If you put the parent class in front, you can't execute the latter. For example, if you put Exception in front, the following will not be executed. The information of subclasses is usually more accurate than that of the parent class, so subclasses are usually put in front.