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
How does class forname work in java?
What are latest features introduced with java 8?
Can we declare a constructor as final?
How do you create a sop?
How objects are stored in java?
What does singleton mean in java?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
Explain illegalmonitorstateexception and when it will be thrown?
What is the difference between synchronized and synchronized block?
Should database connections be singleton?
What is string intern in java?
How do generics work?
Why string objects are immutable in java?
Is zero a positive integer?
What is command line used for?