Pregunta de entrevista de Morgan Stanley

How does the Java virtual Machine assign memory?