OOP Flashcards
1
Q
What is encapsulation?
A
2
Q
What is abstraction?
A
3
Q
What is inheritance?
A
4
Q
What is Polymorphism?
A
5
Q
What is the difference between an abstract class and an interface?
A
6
Q
How does Java achieve runtime polymorphism?
A
7
Q
What are constructors in Java? How is constructor overloading different from method overloading?
A
8
Q
What are access modifiers in Java and how do they support encapsulation?
A
9
Q
What is the difference between == and .equals() in Java?
A
10
Q
Can you explain the concept of “IS-A” vs. “HAS-A” relationships in Java?
A