Elastic interview question

How does the JVM heap work