Fifth International World Wide Web Conference
Exception Handling
- Try-catch blocks allow the Java program to handle error conditions
- occur directly within the try block
- occur in methods called in the try block
throw
statement raises an exception
- Nearest catch block prepared to handle the exception gets control
- Following catch block, execution continues at the next statement following
the entire try-catch block
- There is no resume capability
Java - An Introductory Language Tutorial
(E.A.Johnson)