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 meant by bytecode?
What is string data type?
What is Applet Stub Interface ?
What is array list in java?
How to disable caching on back button of the browser?
Why are getters and setters used?
How many types of methods are there?
What is listnode in java?
What's the difference between an abstract class and interface in java?
What are basic data types?
What is a variable in java?
Can you sort a string in java?
Difference between string, string builder, and string buffer?
Can we create our own wrapper class in java?
Difference between final and effectively final ? Why is effectively final even required ?