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
Is class forname reflection?
Why java uses the concept of the string literal?
What is runtime polymorphism or dynamic method dispatch?
Can long be null in java?
What are advantages of using Java?s layout managers than windowing systems?
How use .contains in java?
What is a wrapper method?
Say any two properties in beans?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is static variable with example?
How do you sort a set in java?
Can we have a try block without catch block?
what is heap memory?
Give me example of derived data types.
Can we use return in constructor?