I think you are not stating the question correctly and i think the question is more like Give a generalization of Garbage Collection e.g. what is garbage collection.
Basically, the GC checks to see if there are objects on the heap that are no longer being used and if they aren't, that memory on the heap is reallocated.
Read this if you want to know how to get a correct reply for your question:
Technical Editor for: Professional Search Engine Optimization with ASP.NET
Why can't Programmers, program??