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. hi can any one help me how i can install javax.co
View Tutorial          By: Jewel at 2008-02-26 21:52:17

2. hi
i try to write a code for send data or s

View Tutorial          By: mjh at 2011-02-16 08:26:10

3. Why the output list in the wrong order?
View Tutorial          By: Pavel at 2013-02-23 12:05:02

4. Plz send code of sending sms from java code...

View Tutorial          By: Shekh at 2014-11-27 14:18:25

5. hi can u send me the complete working code for sen
View Tutorial          By: gautami at 2007-12-04 01:13:45

6. How do you remove an element from the map?
View Tutorial          By: Shreejit at 2012-01-29 16:53:27

7. Your example is clear crisp and very helpful..
View Tutorial          By: sridhar at 2009-08-06 08:41:14

8. Hi,,i try this tutorial,,it working,,but it kind o
View Tutorial          By: Eka Praditya at 2013-07-02 04:11:41

9. one have to store .wav file in res folder of your
View Tutorial          By: swetha at 2013-06-14 06:47:57

10. how to append more items in multiple choice group
View Tutorial          By: GIRIDHARAN at 2013-03-25 19:05:09