Modifiers interview questions

15 real Modifiers questions from the Java bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is static member?

Junior
  1. A.a method that cannot be overridden by any subclass
  2. B.a class that cannot be extended, such as String
  3. C.a field or method that belongs to the class itself rather than to any instance, shared across all objects
  4. D.a variable that can be assigned only once, making its reference or value unchangeable after initialization
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.static member — a method that cannot be overridden by any subclass
  2. B.static member — a block that runs once when the class is loaded, used to initialize static fields with complex logic
  3. C.static member — a field or method that belongs to the class itself rather than to any instance, shared across all objects
  4. D.static member — a class that cannot be extended, such as String
Reveal the answer + AI explanation — free account

4. What is final variable?

Mid
  1. A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
  2. B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
  3. C.a method that cannot be overridden by any subclass
  4. D.a class that cannot be extended, such as String
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.final variable — a field or method that belongs to the class itself rather than to any instance, shared across all objects
  2. B.final variable — a variable that can be assigned only once, making its reference or value unchangeable after initialization
  3. C.final variable — a method that cannot be overridden by any subclass
  4. D.final variable — a block that runs once when the class is loaded, used to initialize static fields with complex logic
Reveal the answer + AI explanation — free account

7. What is final method?

Mid
  1. A.a method that cannot be overridden by any subclass
  2. B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
  3. C.a block that runs once when the class is loaded, used to initialize static fields with complex logic
  4. D.a class that cannot be extended, such as String
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.final method — a block that runs once when the class is loaded, used to initialize static fields with complex logic
  2. B.final method — a method that cannot be overridden by any subclass
  3. C.final method — a variable that can be assigned only once, making its reference or value unchangeable after initialization
  4. D.final method — a class that cannot be extended, such as String
Reveal the answer + AI explanation — free account

10. What is final class?

Mid
  1. A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
  2. B.a field or method that belongs to the class itself rather than to any instance, shared across all objects
  3. C.a method that cannot be overridden by any subclass
  4. D.a class that cannot be extended, such as String
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.final class — a class that cannot be extended, such as String
  2. B.final class — a variable that can be assigned only once, making its reference or value unchangeable after initialization
  3. C.final class — a field or method that belongs to the class itself rather than to any instance, shared across all objects
  4. D.final class — a method that cannot be overridden by any subclass
Reveal the answer + AI explanation — free account

13. What is static initializer block?

Senior
  1. A.a variable that can be assigned only once, making its reference or value unchangeable after initialization
  2. B.a block that runs once when the class is loaded, used to initialize static fields with complex logic
  3. C.a field or method that belongs to the class itself rather than to any instance, shared across all objects
  4. D.a method that cannot be overridden by any subclass
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.static initializer block — a field or method that belongs to the class itself rather than to any instance, shared across all objects
  2. B.static initializer block — a variable that can be assigned only once, making its reference or value unchangeable after initialization
  3. C.static initializer block — a class that cannot be extended, such as String
  4. D.static initializer block — a block that runs once when the class is loaded, used to initialize static fields with complex logic
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Modifiers free