The only thing I would add to Rich's comment is that this will only
happen when the garbage collector runs (which could conceivably be never).
Using the garbage collector to cleanup resources that have close() methods
isn't a really great idea because of the non-deterministic behavior
of the garbage collector in large applications.
"The stuff we call "software" is not like anything that human society
is used to thinking about. Software is something like a machine, and
something like mathematics, and something like language, and
something like thought, and art, and information...
but software is not in fact any of those other things."
Bruce Sterling - The Hacker Crackdown
Fred A. Kulack - IBM eServer iSeries - ERP, Java DB2 access, Jdbc, JTA,
etc...
IBM in Rochester, MN (Phone: 507.253.5982 T/L 553-5982)
mailto:kulack@us.ibm.com Personal: mailto:kulack@magnaspeed.net
AOL Instant Messenger: Home:FKulack Work:FKulackWrk