Explain garbage collection
Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program can�t directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program.
![Visit Listing - Car Dealer & Autos Theme (New 2022) - Download Now! Car Dealer & Autos Theme (New 2022) - Download Now! - Cover Image](https://listingimages.hotscriptscontents.com/cover-image/166841/medium_0a35370e2efdbcb8a9519fdc265d5bca.png)
![Visit Listing - Inout RealEstate - Map Based Advanced Real Estate Portal Inout RealEstate - Map Based Advanced Real Estate Portal - Cover Image](https://listingimages.hotscriptscontents.com/cover-image/157967/medium_77de64bcfd71542b424bdb9d377d8e28.png)