Java Reference
In-Depth Information
The output from the program is shown here:
This example makes another important point: Once an exception has been handled, it
is removed from the system. Therefore, in the program, each pass through the loop enters
the try block anew; any prior exceptions have been handled. This enables your program to
handle repeated errors.
Using Multiple catch Statements
Search WWH ::




Custom Search