Iris Software interview question

How memory distribution in java is managed