Question Bank

3705 approved questions from the community

What is encapsulation in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What are the four main pillars of Object-Oriented Programming in Java?

HARD
SINGLE CHOICE
35s
Java
by Mohamed

What is type casting in Java?

MEDIUM
SINGLE CHOICE
30s
Java
by Mohamed

What is the difference between Soft References and Weak References in Java?

MEDIUM
SINGLE CHOICE
35s
Java
by Mohamed

What is the relationship between reachability and garbage collection in Java?

HARD
SINGLE CHOICE
40s
Java
by Mohamed

What command is used to view Java bytecode?

EASY
SINGLE CHOICE
25s
Java
by Mohamed

What is Just-In-Time (JIT) compilation in Java?

MEDIUM
SINGLE CHOICE
35s
Java
by Mohamed

What is the purpose of bytecode verification in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What are the three main phases of class loading in Java?

MEDIUM
SINGLE CHOICE
35s
Java
by Mohamed

Which of the following are parts of Java's generational memory model?

MEDIUM
MULTIPLE CHOICE
40s
Java
by Mohamed

What are the different types of garbage collection algorithms used in Java?

MEDIUM
SINGLE CHOICE
35s
Java
by Mohamed

Calling System.gc() in Java guarantees that garbage collection will run immediately.

EASY
TRUE FALSE
25s
Java
by Mohamed

Static methods in Java can be overridden in subclasses.

MEDIUM
TRUE FALSE
25s
Java
by Mohamed

The Bootstrap ClassLoader in Java is written in Java code.

EASY
TRUE FALSE
20s
Java
by Mohamed

Java bytecode consists of instructions that are specific to the underlying hardware architecture.

EASY
TRUE FALSE
20s
Java
by Mohamed

The finalize() method in Java is recommended for resource cleanup in modern Java applications.

MEDIUM
TRUE FALSE
25s
Java
by Mohamed

What is the marking phase in Java's garbage collection process?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What is the difference between method overloading and method overriding?

EASY
SINGLE CHOICE
35s
Java
by Mohamed

The JVM can execute Java source code (.java files) directly without compilation.

EASY
TRUE FALSE
20s
Java
by Mohamed

Primitive types in Java can be assigned a null value.

EASY
TRUE FALSE
20s
Java
by Mohamed
PreviousPage 140 of 186Next