Glovo interview question

Describe the memory allocation on JVM