Why does java doesnot support multiple inheritance?
Answer Posted / msraju
Every class in java must have only one root class (i.e
Object class) directly or indirectly.
If Class C extends Class A and Class B(this approach is not
supported in java ),here Class A will one root Object
class,similarly Class B will have Another root class.i.e
Here Class C is having two root classes....For this reason
java not supporting Multiple inheritance with respective
Objacts.
Every objects need some common functionalities which are
available in Object class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does arrays sort do in java?
How many threads does a core java have?
What are the types of web technologies?
What is the difference between declaration and definition in java?
What is final, finally, finalize?
What is array command?
What are the two types of java?
What is args length in java?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
When throws keyword is used?
Difference between string, stringbuffer and stringbuilder?
What is anagram number?
Is namespace same as package in java?
What is the purpose of return statement?
Explain the significance of listiterator.