Question d’entretien chez Oracle

How is garbage collection achieved in Java.