This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.