Henry Wong wrote:http://java.sun.com/docs/books/tutorial/essential/exceptions/
let me guess, you googled 'java exceptions tutorial' and followed the first result ?
I find that a bit harsh, especially coming from a user who contributed nothing in this thread,
basically there are 3 parts to it:
The code you would write in part1 is the code that might throw an exception.
The code you would write in part2 is the code that should run when an exception is "caught"
The code you would write in part3 is the code that should run regardless of an exception after the try block, This code executes even when an exception not caught by the catch block occurs.