IBM interview question

How is memory management handled in Java?