OOP & Classes interview questions

24 OOP & Classes 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.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "a blueprint that defines the fields and methods from which objects are instantiated"?

Junior
  1. A.Interface
  2. B.Class
  3. C.Polymorphism
  4. D.Default method

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "the mechanism by which a subclass acquires the fields and methods of a superclass using the extends keyword"?

Junior
  1. A.Inheritance
  2. B.Interface
  3. C.Encapsulation
  4. D.Class

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "the ability for a single method call to dispatch to different implementations at runtime depending on the actual object type"?

Mid
  1. A.Default method
  2. B.Class
  3. C.Polymorphism
  4. D.Encapsulation

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

20. Which term means: "the OOP principle of hiding internal state behind private fields and exposing it only through controlled accessor methods"?

Mid
  1. A.Inheritance
  2. B.Encapsulation
  3. C.Polymorphism
  4. D.Default method

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

23. Which term means: "defining multiple methods with the same name but different parameter lists, resolved by the compiler at compile time"?

Mid
  1. A.Interface
  2. B.Default method
  3. C.Method overloading
  4. D.Abstract class

Answer + AI explanation with Pro

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

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 OOP & Classes question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers