Amdocs interview question

How memory is managed by JVM?