Garbage collection, also called automatic memory management, is used to recycle dynamically allocated memory automatically. This function is performed by Garbage collector that reclaims memory if it gets proved that mind will stay unused.

BY Best Interview Question ON 12 Feb 2019