|
Lim Hock-Chai wrote:Agreed.
Is there a guideline on when should an application manually calls the
finalize(), System.runFinalization(), or System.gc()? Or should
application never calls these methods and let the JVM mangement it on
its own?
I've always been under the assumption that you should let the JVM manage finalization.
In fact, I think it's recommend that you don't even create your own finalization method, as there is no guarantee as to when it will actually run.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.