Facts about JVM memory areas
QuizMediumJava onlyAsked in: Capgemini, Infosys, TCS, Wipro
The JVM (the program that runs Java code) splits its memory into areas. Which statements about JVM memory in Java 21 are true? Pick all that apply.
- The string pool is stored in the heap
- Class metadata lives in Metaspace, which replaced PermGen in Java 8
- All threads share one stack
- Without -Xmx, the default maximum heap is a quarter of the memory available to the JVM
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.