What is the purpose of garbage collection?
What is the purpose of garbage collection? Correct Answer Removes object with no reference
When the interpreter sees an object in the heap with no object references, it removes that object from the heap. This is called garbage collection. An object is considered garbage collectible if there are zero references pointing at this object.