Question d’entretien chez Snoonu

Explain how Garbage collection works in Java.