Sunday, 17 April 2011

Does the order of the catch blocks matter if the Exceptions caught by them are not subtype or supertype of each other?

No. If the exceptions are siblings in the Exception class’s hierarchy i.e. If one Exception class is not a subtype or supertype of the other, then the order in which their handlers(catch clauses) are placed does not matter.

No comments:

Post a Comment