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.
A.the per-thread region that stores method call frames, local variables, and primitive values
B.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
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
A.Bytecode
B.JIT compilation
C.Heap
D.G1 collector
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Heap — the per-thread region that stores method call frames, local variables, and primitive values
B.Heap — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
C.Heap — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
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
A.the per-thread region that stores method call frames, local variables, and primitive values
B.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
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
A.Garbage collection
B.G1 collector
C.Bytecode
D.Stack memory
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Stack memory — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
B.Stack memory — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
C.Stack memory — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
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
A.the runtime translation of frequently executed bytecode into native machine code for faster execution
B.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
C.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
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
A.Heap
B.Garbage collection
C.G1 collector
D.JIT compilation
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Garbage collection — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
B.Garbage collection — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
C.Garbage collection — the runtime translation of frequently executed bytecode into native machine code for faster execution
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
A.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
B.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
C.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
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
A.Stack memory
B.Bytecode
C.G1 collector
D.Garbage collection
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.G1 collector — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
B.G1 collector — the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
C.G1 collector — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
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
A.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
B.the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
C.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
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
A.Garbage collection
B.Heap
C.JIT compilation
D.Bytecode
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Bytecode — the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
B.Bytecode — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
C.Bytecode — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
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
A.the automatic process of reclaiming heap memory occupied by objects no longer reachable from any live reference
B.the platform-independent instruction set in a .class file that the JVM interprets or compiles at runtime
C.the runtime memory region where all objects and arrays are allocated and managed by garbage collection
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
A.Bytecode
B.JIT compilation
C.Garbage collection
D.Heap
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.JIT compilation — the default region-based garbage collector since Java 9 that aims for predictable low pause times on large heaps
B.JIT compilation — the runtime memory region where all objects and arrays are allocated and managed by garbage collection
C.JIT compilation — the runtime translation of frequently executed bytecode into native machine code for faster execution
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.