This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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.