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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. thanks a lot..please tell me how to implement this
View Tutorial By: agnas at 2008-04-26 12:26:52
2. Thank you......
View Tutorial By: Suvadip at 2013-04-19 05:11:51
3. I had a problem, which is the password when window
View Tutorial By: jua at 2013-09-16 23:16:27
4. hi, good afternoon
i don,t know how to use
View Tutorial By: Hemanshu at 2012-01-17 06:49:10
5. Really just brilliant...thanks
View Tutorial By: Ash Singh at 2011-02-21 04:47:20
6. thanks a lot fo the help offered.
View Tutorial By: Douglas [email protected] at 2012-10-31 05:37:04
7. How to write data from keyboard to a file in java?
View Tutorial By: Ashish Ranjan at 2011-07-13 01:04:38
8. Nice info. I must say about this post.
than
View Tutorial By: Ganesh Prasad at 2012-10-30 05:51:49
9. php-cgi.exe return popup "is not a valid Win3
View Tutorial By: noob at 2013-06-30 09:47:38
10. very nice thank you so much my dude
View Tutorial By: mohd at 2010-07-28 02:40:23