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 vector thread safe in java?
What is initial size of arraylist in java?
What is an infinite loop in java? Explain with an example.
What is meant by tab pans?
What is a map? What are the implementations of map?
Is singleton thread safe in java?
What are locale settings?
Explain about public and private access specifiers?
What is the full meaning of java?
Can a java program have 2 main methods?
String class is defined under which package in java?
What state is a thread in when it is executing?
Why singleton is not thread safe?
What exceptions occur during serialization?
What is the difference between int and integer in java?