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
Gan,

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 .


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thanks for this article. Now I can understand Iter
View Tutorial          By: Rajesh Kumar at 2010-12-14 03:27:25

2. I got error during using above code if There is ne
View Tutorial          By: Sunil at 2009-12-28 05:22:45

3. i have downloaded the code and calling the the SMS
View Tutorial          By: sandeep das at 2009-04-09 11:12:16

4. Thank you for good explanation. I am thinking of u
View Tutorial          By: Darshan at 2012-06-22 15:44:57

5. Nice one really helpful thanks
View Tutorial          By: Shashikant at 2012-01-06 12:00:45

6. Hi,
I've tried this but got a problem. Firs

View Tutorial          By: Hendrik Jabs at 2009-12-10 02:46:13

7. Good Tutorial.
Thanks.

View Tutorial          By: Oki Wicaksono at 2012-05-29 04:09:05

8. hi,
while exporting data i am getting error

View Tutorial          By: akash at 2011-12-22 07:28:05

9. how to get this list to be alphabetically correct?
View Tutorial          By: Vincent at 2011-06-14 07:36:58

10. The Compleate Reference
JAVA Seventh Editi

View Tutorial          By: joshap at 2014-10-25 12:05:41