Atlassian interview question

How is memory managed in Java?