Question: If, within one try statement you want to have catch clauses that catch exceptions of the following types, in which order should they appear in
If, within one try statement you want to have catch clauses that catch exceptions of the following types, in which order should they appear in your program?
(1) NumberFormatException
(2) Exception
(3) Throwable (4) RuntimeException
| Throwable, RuntimeException, NumberFormatException , Exception | ||
| Exception, Throwable, RuntimeException, NumberFormatException, | ||
| NumberFormatException , RuntimeException, Exception, Throwable | ||
| RuntimeException, NumberFormatException, Exception, Throwable |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
