Comment on Tutorial - Garbage collection and Finalize() method By aathishankaran
Comment Added by : Amit
Comment Added at : 2011-07-25 05:26:47
Comment on Tutorial : Garbage collection and Finalize() method By aathishankaran
Above print is not working because your object has not been garbage collected.If you want to print it , make reference of this object null and then call System.gc() and System.runFinalization().
Garbage collection happens automatically and you may not be sure when your object will be destroyed .
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
1. thanks a lot..please tell me how to implement this
View Tutorial By: agnas at 2008-04-26 12:26:52
3. I had a problem, which is the password when window
View Tutorial By: jua at 2013-09-16 23:16:27
7. How to write data from keyboard to a file in java?
View Tutorial By: Ashish Ranjan at 2011-07-13 01:04:38