OOP & Classes interview questions

24 real OOP & Classes 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 Class?

Junior
  1. A.the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  2. B.the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
  3. C.a blueprint that defines the fields and methods from which objects are instantiated
  4. D.the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Class — an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
  2. B.Class — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  3. C.Class — a blueprint that defines the fields and methods from which objects are instantiated
  4. D.Class — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
Reveal the answer + AI explanation — free account

4. What is Inheritance?

Junior
  1. A.the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
  2. B.the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  3. C.defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  4. D.a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Inheritance — a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  2. B.Inheritance — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  3. C.Inheritance — the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
  4. D.Inheritance — a blueprint that defines the fields and methods from which objects are instantiated
Reveal the answer + AI explanation — free account

7. What is Polymorphism?

Mid
  1. A.a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  2. B.the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
  3. C.an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
  4. D.the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Polymorphism — a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  2. B.Polymorphism — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  3. C.Polymorphism — a blueprint that defines the fields and methods from which objects are instantiated
  4. D.Polymorphism — the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
Reveal the answer + AI explanation — free account

10. What is Abstract class?

Mid
  1. A.a blueprint that defines the fields and methods from which objects are instantiated
  2. B.the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  3. C.a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  4. D.an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
Reveal the answer + AI explanation — free account

11. Which term means: "a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses"?

Mid
  1. A.Inheritance
  2. B.Default method
  3. C.Abstract class
  4. D.Interface
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Abstract class — a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  2. B.Abstract class — the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  3. C.Abstract class — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  4. D.Abstract class — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
Reveal the answer + AI explanation — free account

13. What is Interface?

Mid
  1. A.a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  2. B.a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
  3. C.an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
  4. D.a blueprint that defines the fields and methods from which objects are instantiated
Reveal the answer + AI explanation — free account

14. Which term means: "a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance"?

Mid
  1. A.Inheritance
  2. B.Abstract class
  3. C.Encapsulation
  4. D.Interface
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Interface — defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  2. B.Interface — the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
  3. C.Interface — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
  4. D.Interface — an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
Reveal the answer + AI explanation — free account

16. What is Default method?

Senior
  1. A.defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  2. B.an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
  3. C.the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  4. D.the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type
Reveal the answer + AI explanation — free account

17. Which term means: "an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers"?

Senior
  1. A.Polymorphism
  2. B.Inheritance
  3. C.Default method
  4. D.Class
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Default method — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
  2. B.Default method — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
  3. C.Default method — a blueprint that defines the fields and methods from which objects are instantiated
  4. D.Default method — an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
Reveal the answer + AI explanation — free account

19. What is Encapsulation?

Mid
  1. A.defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  2. B.the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  3. C.a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  4. D.a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Encapsulation — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
  2. B.Encapsulation — the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  3. C.Encapsulation — a class declared abstract that cannot be instantiated and may contain unimplemented methods, allowing partial implementation and state for subclasses
  4. D.Encapsulation — a blueprint that defines the fields and methods from which objects are instantiated
Reveal the answer + AI explanation — free account

22. What is Method overloading?

Mid
  1. A.an interface method with a body, introduced in Java 8, that lets new behavior be added to an interface without breaking existing implementers
  2. B.defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  3. C.the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods
  4. D.a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.Method overloading — a blueprint that defines the fields and methods from which objects are instantiated
  2. B.Method overloading — a fully abstract contract of method signatures that a class implements, supporting multiple inheritance of type since Java allows only single class inheritance
  3. C.Method overloading — defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time
  4. D.Method overloading — the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword
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 OOP & Classes free