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
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!!
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.
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