Question d’entretien chez Bloomberg

How is memory managed in Java. Explain what the garbage collector is.