Memory & JVM interview questions

18 Memory & JVM questions from the Java bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Heap?

Junior
  1. A.the per-thread region that stores method call frames, local variables, and primitive values
  2. B.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  3. C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  4. D.the runtime translation of frequently executed bytecode into native machine code for faster execution

Answer + AI explanation with Pro

2. Which term means: "the runtime memory region where all objects and arrays are allocated and managed by garbage collection"?

Junior
  1. A.Bytecode
  2. B.JIT compilation
  3. C.Heap
  4. D.G1 collector

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Heap — the per-thread region that stores method call frames, local variables, and primitive values
  2. B.Heap — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  3. C.Heap — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  4. D.Heap — the runtime translation of frequently executed bytecode into native machine code for faster execution

Answer + AI explanation with Pro

4. What is Stack memory?

Junior
  1. A.the per-thread region that stores method call frames, local variables, and primitive values
  2. B.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  3. C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  4. D.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference

Answer + AI explanation with Pro

5. Which term means: "the per-thread region that stores method call frames, local variables, and primitive values"?

Junior
  1. A.Garbage collection
  2. B.G1 collector
  3. C.Bytecode
  4. D.Stack memory

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Stack memory — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  2. B.Stack memory — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  3. C.Stack memory — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  4. D.Stack memory — the per-thread region that stores method call frames, local variables, and primitive values

Answer + AI explanation with Pro

7. What is Garbage collection?

Mid
  1. A.the runtime translation of frequently executed bytecode into native machine code for faster execution
  2. B.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  3. C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  4. D.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime

Answer + AI explanation with Pro

8. Which term means: "the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference"?

Mid
  1. A.Heap
  2. B.Garbage collection
  3. C.G1 collector
  4. D.JIT compilation

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Garbage collection — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  2. B.Garbage collection — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  3. C.Garbage collection — the runtime translation of frequently executed bytecode into native machine code for faster execution
  4. D.Garbage collection — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime

Answer + AI explanation with Pro

10. What is G1 collector?

Senior
  1. A.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  2. B.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  3. C.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  4. D.the runtime translation of frequently executed bytecode into native machine code for faster execution

Answer + AI explanation with Pro

11. Which term means: "the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps"?

Senior
  1. A.Stack memory
  2. B.Bytecode
  3. C.G1 collector
  4. D.Garbage collection

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.G1 collector — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  2. B.G1 collector — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  3. C.G1 collector — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  4. D.G1 collector — the per-thread region that stores method call frames, local variables, and primitive values

Answer + AI explanation with Pro

13. What is Bytecode?

Mid
  1. A.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  2. B.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  3. C.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  4. D.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference

Answer + AI explanation with Pro

14. Which term means: "the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime"?

Mid
  1. A.Garbage collection
  2. B.Heap
  3. C.JIT compilation
  4. D.Bytecode

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Bytecode — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  2. B.Bytecode — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  3. C.Bytecode — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  4. D.Bytecode — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime

Answer + AI explanation with Pro

16. What is JIT compilation?

Senior
  1. A.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
  2. B.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
  3. C.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  4. D.the runtime translation of frequently executed bytecode into native machine code for faster execution

Answer + AI explanation with Pro

17. Which term means: "the runtime translation of frequently executed bytecode into native machine code for faster execution"?

Senior
  1. A.Bytecode
  2. B.JIT compilation
  3. C.Garbage collection
  4. D.Heap

Answer + AI explanation with Pro

18. Which statement is correct?

Senior
  1. A.JIT compilation — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
  2. B.JIT compilation — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
  3. C.JIT compilation — the runtime translation of frequently executed bytecode into native machine code for faster execution
  4. D.JIT compilation — the per-thread region that stores method call frames, local variables, and primitive values

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Memory & JVM question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers