aspose file tools
The moose likes Beginning Java and the fly likes Garbage collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Garbage collection" Watch "Garbage collection" New topic
Author

Garbage collection

balakrishnap
Greenhorn

Joined: Mar 26, 2002
Posts: 1
Pl explain about garbage collection
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
What exactly don't you understand about GC. You may want to search the Java in General forums and Google for that matter. There is tons of information out there. The Java tutorial at Sun's site is also very good.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Moving this discussion to Java in General(beginner) forum ..


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
balakrishnap
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!


Dave
Vishakha Ahuja
Ranch Hand

Joined: Sep 13, 2000
Posts: 191
Originally posted by balakrishnap:
Pl explain about garbage collection

Java allows you to create as many objects as you want without worrying about destroying them. The JRE deletes these objects when it determines that they are no longer being used. This process is called as Garbage Collection.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
There are tons of details about garbage collection but, as a quick overview, garbage collection is performed by a separate (daemon) thread which reclaims heap memory by removing objects that have been allocated and are no longer being used.
An object is considered to be no longer used when there are no more references to it from an active part of the application.
You can search in this forum or in the Java Programmer's Certification forum to find lots of information on garbage collection.
Corey


SCJP Tipline, etc.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Garbage collection
 
Similar Threads
gc ??
Tech Word Game
Return values of methods
i passed with 81%
what is the difference between local garbage collection and remote garbage collection