Question d’entretien chez EPAM Systems

How does garbage collection work in Java.