W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
33 questions for “JVM”
Found in 1 field. Select a question to see its full answer.
Information Technology
33 questions in 2 technologies
#
Question
Technology
Topic
Level
1
What is the role of the ClassLoader in the
JVM
, and what are the three built-in bootstrap/platform/application class loaders?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Beginner
2
What is garbage collection in the
JVM
, and what fundamental problem does it solve compared to manual memory management (like in C/C++)?
Java › Garbage Collection
Java
Garbage Collection
Beginner
3
How does the generational hypothesis (most objects die young) inform the
JVM
's generational heap structure (young generation, old generation), and how does a minor GC differ from a major/full GC?
Java › Garbage Collection
Java
Garbage Collection
Intermediate
4
What is bytecode verification, and what specific categories of invalid or unsafe bytecode does the
JVM
's verifier reject before allowing a class to run?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Advanced
5
How does the same class name loaded by two different ClassLoaders create two genuinely distinct types in the
JVM
, and what problems does this cause (such as with singletons or ClassCastException)?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Advanced
6
How does Class Data Sharing (CDS) and Application Class Data Sharing (AppCDS) improve
JVM
startup time, and how does it relate to class loading and verification?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Advanced
7
What is the purpose of the -Xverify:none (or newer -noverify)
JVM
flag, and why is disabling bytecode verification generally discouraged?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Intermediate
8
What is hot class reloading/redefinition (via Instrumentation.redefineClasses() or a
JVM
agent), and what are its practical limitations compared to a full class unload/reload?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Intermediate
9
What is the purpose of the addSuppressed() mechanism and getSuppressed() method on Throwable, and in what specific scenario does the
JVM
automatically populate suppressed exceptions?
Java › Exceptions
Java
Exceptions
Intermediate
10
How would you use
JVM
flags to tune heap size (-Xms, -Xmx) and understand the trade-offs of setting them equal versus allowing dynamic heap resizing?
Java › Garbage Collection
Java
Garbage Collection
Intermediate
Show all 33 questions in Information Technology