What do you know about the garbate collector

Showing Answers 1 - 7 of 7 Answers

RIT

  • Jul 26th, 2005
 

garbage collection is one of the features of java... Java provide automatically releasing of the object if that is no longer in the use. so that the memory can be used by some other object.. garbage collector collect the oblect only those whose reference counter become Zero... 
 

  Was this answer useful?  Yes

Garbage collection is used to collect objects which cannot be referenced. Which occupy system memory.  The algorithm collects such references of objects and permits reuse of memory.  It is used to remove weak references.  The garbage collection cannot be controlled but can be called using system.gc().

  Was this answer useful?  Yes

Imran Khan

  • Dec 10th, 2011
 

Garbage collector uses for the memory deallocation, it does when we do not have a longer use of object.deallocation can be done both manually and automatically. We use the .gc function for the garbage collection.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions