What, again?
Posted May 7, 2007 1:06 UTC (Mon) by
ncm (subscriber, #165)
In reply to:
What, again? by schaueho
Parent article:
The Rise of Functional Languages (Linux Journal)
No, finalization is no substitute. In fact it is actively harmful. You have no way to know when a finalization routine will happen, whether it will ever happen, what thread it will happen in, what order a series of them will be called in, or what else may be going on when they fire off. Competent Java shops typically forbid finalization except for debugging purposes, to help catch missed manual close operations.
(
Log in to post comments)