15 Modifiers 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.a method that cannot be overridden by any subclass
B.a class that cannot be extended, such as String
C.a field or method that belongs to the class itself rather than to any instance, shared across all objects
D.a variable that can be assigned only once, making its reference or value unchangeable after initialization
Answer + AI explanation with Pro
2. Which term means: "a field or method that belongs to the class itself rather than to any instance, shared across all objects"?
Junior
A.final method
B.final class
C.static member
D.final variable
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.static member — a method that cannot be overridden by any subclass
B.static member — a block that runs once when the class is loaded, used to initialize static fields with complex logic
C.static member — a field or method that belongs to the class itself rather than to any instance, shared across all objects
D.static member — a class that cannot be extended, such as String
Answer + AI explanation with Pro
4. What is final variable?
Mid
A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
C.a method that cannot be overridden by any subclass
D.a class that cannot be extended, such as String
Answer + AI explanation with Pro
5. Which term means: "a variable that can be assigned only once, making its reference or value unchangeable after initialization"?
Mid
A.final variable
B.static initializer block
C.final class
D.static member
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.final variable — a field or method that belongs to the class itself rather than to any instance, shared across all objects
B.final variable — a variable that can be assigned only once, making its reference or value unchangeable after initialization
C.final variable — a method that cannot be overridden by any subclass
D.final variable — a block that runs once when the class is loaded, used to initialize static fields with complex logic
Answer + AI explanation with Pro
7. What is final method?
Mid
A.a method that cannot be overridden by any subclass
B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
C.a block that runs once when the class is loaded, used to initialize static fields with complex logic
D.a class that cannot be extended, such as String
Answer + AI explanation with Pro
8. Which term means: "a method that cannot be overridden by any subclass"?
Mid
A.final variable
B.static initializer block
C.final class
D.final method
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.final method — a block that runs once when the class is loaded, used to initialize static fields with complex logic
B.final method — a method that cannot be overridden by any subclass
C.final method — a variable that can be assigned only once, making its reference or value unchangeable after initialization
D.final method — a class that cannot be extended, such as String
Answer + AI explanation with Pro
10. What is final class?
Mid
A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
C.a method that cannot be overridden by any subclass
D.a class that cannot be extended, such as String
Answer + AI explanation with Pro
11. Which term means: "a class that cannot be extended, such as String"?
Mid
A.static initializer block
B.final class
C.final variable
D.static member
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.final class — a class that cannot be extended, such as String
B.final class — a variable that can be assigned only once, making its reference or value unchangeable after initialization
C.final class — a field or method that belongs to the class itself rather than to any instance, shared across all objects
D.final class — a method that cannot be overridden by any subclass
Answer + AI explanation with Pro
13. What is static initializer block?
Senior
A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
B.a block that runs once when the class is loaded, used to initialize static fields with complex logic
C.a field or method that belongs to the class itself rather than to any instance, shared across all objects
D.a method that cannot be overridden by any subclass
Answer + AI explanation with Pro
14. Which term means: "a block that runs once when the class is loaded, used to initialize static fields with complex logic"?
Senior
A.final variable
B.static initializer block
C.static member
D.final class
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.static initializer block — a field or method that belongs to the class itself rather than to any instance, shared across all objects
B.static initializer block — a variable that can be assigned only once, making its reference or value unchangeable after initialization
C.static initializer block — a class that cannot be extended, such as String
D.static initializer block — a block that runs once when the class is loaded, used to initialize static fields with complex logic
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 Modifiers question come with Pro.