D. E. Shaw India Interview Question

How does memory management happen in java and what does jvm do