Garbage Collector
Garbage Collector
Garbage collector do garbage collection process to free the memory used by not referenced objects. It is mainly responsible for Allocating memory for the objects and free the memory occupied by the non reference objects.
Take care about reference objects remained in memory.
referenced objects are called live objects.
not referenced objects are called dead or garbage.
objects get memory allocated from the large pool of memory, it is called heap.