Garbage collection makes Java more memory efficient by simply removing the objects which are not referenced to anything from the heap memory and creating the free space for the new objects.

BY Best Interview Question ON 03 May 2022