Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

Java Garbage Collection

The Java language is the most widely used programming language to rely on garbage collection.

Java Garbage Collection

                         


The Java language is the most widely used programming language to rely on garbage collection. The name "garbage collection" implies that objects that are no longer needed by the program are "garbage" and can be thrown away or destroyed. The Java virtual machine's heap stores all objects created by a running Java application. Objects are created by the new operator but never freed explicitly by the code.

Garbage collection is the process of automatically freeing objects that are no longer referenced by the program. Such as object must be recycled so that the space is available for succeeding new objects. The garbage collector determines which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects. Garbage collection relieves the programmer from the load of freeing allocated memory.


Read example at:

http:/www.roseindia.net/java/beginners/GarbageCollection.shtml

 

                         

» View all related tutorials
Related Tags:

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.