August 7, 2009 at 5:16 PM
Hi friend .
Garbage collection is an automatic process.
Consider, for eg,a program contains unused object,that is ,for which memory is allocated but there is no use of that object throughout the program, then that memory will be located as garbage.
For complete utilization of memory garbage collection is used.
Garbage collector runs periodically.