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



Subscribe to Tutorials

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,
how can make a report to display one re

View Tutorial          By: david at 2013-08-30 16:09:23

2. Hi all
I connected my mobile wi

View Tutorial          By: sruthy at 2010-07-07 03:44:27

3. Hi,

I am using the code files for s

View Tutorial          By: Utsav at 2009-07-14 01:29:06

4. can i add new language for my freetts project ? I'
View Tutorial          By: [email protected] at 2011-08-09 06:49:52

5. Neatly explained about the three important functio
View Tutorial          By: Jitendra Lenka at 2011-02-03 06:34:10

6. I got a project on J2ME and i was to start to kno
View Tutorial          By: md kadir ali , vit university , vellore at 2010-05-12 00:59:58

7. I lik the description.
View Tutorial          By: Praveen saini at 2012-11-05 10:13:41

8. This is a bad example, it does not check if the al
View Tutorial          By: Erik at 2011-02-12 07:16:20

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

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

10. very nice example
View Tutorial          By: lois at 2010-10-05 23:05:01