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. Hi all
I connected my mobile wi
View Tutorial By: sruthy at 2010-07-07 03:44:27
2. Could any one please send the working source code
View Tutorial By: Raviteja at 2014-06-24 05:27:43
3. How to sort an Arraylist in some given order? Say,
View Tutorial By: Arunava Chatterjee at 2015-03-07 04:17:51
4. result = fact (n-1) * n;
i didn't got this
View Tutorial By: praveen at 2011-08-07 20:22:09
5. hello it wrong in memmove nd memcpy case. I am get
View Tutorial By: jaya at 2012-04-05 17:18:14
6. Hi Shiva,
Comparator interface is used to o
View Tutorial By: Srinath at 2015-04-19 08:23:20
7. Can anybody send full code for sending and receivi
View Tutorial By: Jayapal at 2010-08-12 11:41:38
8. great example for beginners. Thank you
View Tutorial By: kumar at 2011-11-24 08:15:14
9. Excellent article. Please make the email id of the
View Tutorial By: Rajita at 2008-03-25 09:31:27
10. Thanks ,It is very useful...
View Tutorial By: SABARISH at 2014-08-08 05:46:43