What is ‘is-a ‘ relationship in java?



What is ‘is-a ‘ relationship in java?..

Answer / Pradeep Kumar Mahto

'Is-a' relationship, also known as inheritance, is a type of relationship between two classes in Java where one class (subclass or derived class) inherits the properties and behaviors of another class (superclass or base class). This allows for polymorphism and code reusability.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is preflight request?

1 Answers  


What is final modifier?

1 Answers  


Difference between default and protected access specifiers?

1 Answers  


Can we inherit a class with private constructor?

1 Answers  


Difference between method overloading and overriding.

1 Answers  


How do you sing an Applet ?

1 Answers  


What does exp mean in math?

1 Answers  


What's the base class of all exception classes?

1 Answers  


what is features of jdk 1.5?

2 Answers   Accenture, Satyam, TCS,


What classes of exceptions, thrown by a throw statement?

2 Answers  


How can we achieve IPC in JAVA?

1 Answers   Wipro,


Explain the difference between transient and volatile in java?

1 Answers  


Categories