ADP interview question

how did JVM manages memory