What is meant by Garbage collection ?
GC is automatic memory management, which is a collector attempts to reclaim garbage or memory occupied by objects that are no longer in use by the program(unreferenced objects). Advantage of GC is memory efficient, automatically done.Can be done By nulling the reference, assigning a reference to another, annonymous object etc.