What does garbage collector do?
removes the anonymous objects from heap
excuse me... this is Q&A. you ask, others answer. this is not a FAQ or encyclopedia... if you'd like to teach others, search for unanswered questions and answer them. or use code playground to create a html document with FAQ ;)
https://www.sololearn.com/Discuss/338448/?ref=app Check it out.
removes the anonymous objects
Those are not anonymous ,those are abandoned objects...