Pregunta de entrevista de IBM

How is memory management handled in Java?