I read at many places, but did not find a place where I can learn about :
What is java garbage collection all about?
How is it implemented?
When and
The garbage collection technique uses MARK and SWEEP algorithm.
For more details Mark-and-Sweep Garbage Collection