How the genarations works? how the garbage collector knows when to move where what to look for where
Rajanikant Hawaldar
Select an image from your device to upload
Garbage collection is the technique by which memory is managed automatically by reclaiming unused memory. It is a feature present in programming languages like Java, due to which the programmers need not keep track of the unused objects and destroy them. It is done automatically using Garbage Collection