Refer KAM's Guide to
Java Certification:
Sec 5.6 p156 The code in the finally block is always executed.
p159 If any code in the try block is executed, then the finally block is guaranteed to be executed, regardless of whether any catch block is executed.
Example 5.11
I inserted System.exit(1) and
finally did not get executed in either instances (other is commented as //~JB). In what context is KAM referring to by his statements, anyone?
------------------
~James Baud Talk, does not cook rice. - Chinese Proverb
[This message has been edited by James Baud (edited January 11, 2001).]
<B>~James Baud</B><P>He who asks, is a fool for five minutes;<BR>but, he who does not ask, remains a fool forever. (Chinese proverb)