Amdocs Interview Question

How memory is managed by JVM?