Elastic Interview Question

How does the JVM heap work