posted 16 years ago
I'm not nitpicking but finally doesn't catch anything at all. It simply is gauranteed to execute regardless of whether an exception was thrown or not.
Flow is:
aMethod is called, and throws an exception. This exception is not caught in the aMethod.
finally is executed, as it is guaranteed to before the exception is thrown on.
"finally"
The main method catches the exception in its catch block, and deals with it.
"exception"
The main method continues processing until it has completed.
"finished"
[ October 11, 2007: Message edited by: Craig Bayley ]