What is multiple inheritance & can we implement it in java?
Answer Posted / lavanya
Java Does Support Multiple inheritance through the usage of
intrface concept. multiple inheritence is one class
acquiring the features of more than one class.
Java can extend one class but can implement more than one
interface.
intreface is a class whose methods are declared but
functionality not defined. The implementing class has to
define that functionality.
Through the use of interfaces we can avoid the confusion of
which class to use in case two extended classes have same method
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is the properties class?
How does a for loop work java?
Can java list contain duplicates?
What are the different types of constructor?
What are java threads?
Can we convert integer to string in java?
What is public static void main?
How do you compare characters in java?
Are strings immutable in java?
What are methods in java?
what is the volatile modifier for? : Java thread
Explain the selection sort algorithm and state its time complexity?
What is casting in java programming?
Is null in java?
Is it possible to use string in the switch case?