Java Topics
OOPs Interview Questions
Last Updated : 26 May, 2026
title: OOPs Interview Questions
title: OOPs Interview Questions description: Object-Oriented Programming interview questions for Java
Q1. OOP ke 4 pillars kya hain?
- Encapsulation — Data aur methods ko ek unit mein band karna
- Inheritance — Parent class ki properties child class mein use karna
- Polymorphism — Ek kaam alag-alag tarike se karna
- Abstraction — Implementation hide karna, sirf functionality dikhana
Q2. Class aur Object mein difference?
- Class — Blueprint/template hai
- Object — Class ka real-world instance hai
Q3. Constructor kya hai? Types?
Constructor ek special method hai jo object create hone par automatically call hota hai.
- Default Constructor
- Parameterized Constructor
- Copy Constructor
Q4. Method Overloading vs Method Overriding?
| Overloading | Overriding | |
|---|---|---|
| -- | -- | -- |
| Definition | Same name, different parameters | Child class parent method redefine karta hai |
| Type | Compile-time polymorphism | Runtime polymorphism |
| Inheritance | Zaruri nahi | Zaruri hai |
Q5. Abstract class vs Interface?
| Abstract Class | Interface | |
|---|---|---|
| -- | -- | -- |
| Variables | Any type | public static final only |
| Methods | Abstract + Concrete | Abstract (Java 8+ default/static bhi) |
| Inheritance | Single | Multiple |
| Constructor | Hota hai | Nahi hota |
Q6. super keyword ka use?
- Parent class constructor call karna:
super() - Parent class method call karna:
super.methodName() - Parent class variable access:
super.variableName
Q7. this keyword ka use?
- Current class instance refer karna
- Constructor chaining:
this() - Method parameter aur instance variable mein confusion avoid karna
Q8. Static aur Instance method mein difference?
- Static method: Class ke sath call hota hai,
thisnahi hota - Instance method: Object ke sath call hota hai
Q9. Encapsulation kaise implement karte hain?
- Variables ko
privatebanao getteraursettermethods provide karo
Q10. Multiple inheritance Java mein kyun nahi?
Diamond problem ki wajah se. Interface se multiple inheritance possible hai.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for OOPs Interview Questions.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Java topic.
Search Terms
java, java programming, core java, java master course, java notes, master, course, interview
Related Java Topics