Select from following answers:- Order from most general to most specific.
- Order from most likely to least likely to occur.
- Order from most specific to most general.

- Order from least likely to most likely to occur.
- All Above
The first type that matches is caught, and subsequent Catch
clauses are skipped. Therefore, you should order Catch clauses from most specific to most general to enable you to catch errors that you have specific error-handling for, while still catching other exceptions with the more general Catch clauses.
Show Correct Answer
Source: MCTS Book | Asked In: MCTS |
Alert Moderator