Capgemini interview question

Explain Garbage Collection in Java