1 / 5
What does the JVM execute?
-
-
-
-
The JVM (Java Virtual Machine) executes platform-independent bytecode produced by the Java compiler from source files.
2 / 5
What is the role of garbage collection (GC)?
-
-
-
-
GC automatically frees memory occupied by objects that are no longer reachable, removing the need for manual deallocation.
3 / 5
Where are objects allocated in the JVM?
-
-
-
-
Objects live on the heap, a shared memory region managed by the GC; local variables and frames live on the per-thread stack.
4 / 5
What does the JIT compiler do?
-
-
-
-
The JIT (just-in-time) compiler converts frequently executed (hot) bytecode into optimized native code during runtime for better performance.
5 / 5
What is stored on a thread's stack?
-
-
-
-
The stack holds method call frames, including local variables and return addresses, growing and shrinking with calls.