Question d’entretien chez Morgan Stanley

How does the Java virtual Machine assign memory?