Question Bank
3705 approved questions from the community
What is encapsulation in Java?
What are the four main pillars of Object-Oriented Programming in Java?
What is type casting in Java?
What is the difference between Soft References and Weak References in Java?
What is the relationship between reachability and garbage collection in Java?
What command is used to view Java bytecode?
What is Just-In-Time (JIT) compilation in Java?
What is the purpose of bytecode verification in Java?
What are the three main phases of class loading in Java?
Which of the following are parts of Java's generational memory model?
What are the different types of garbage collection algorithms used in Java?
Calling System.gc() in Java guarantees that garbage collection will run immediately.
Static methods in Java can be overridden in subclasses.
The Bootstrap ClassLoader in Java is written in Java code.
Java bytecode consists of instructions that are specific to the underlying hardware architecture.
The finalize() method in Java is recommended for resource cleanup in modern Java applications.
What is the marking phase in Java's garbage collection process?
What is the difference between method overloading and method overriding?
The JVM can execute Java source code (.java files) directly without compilation.
Primitive types in Java can be assigned a null value.