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
How can we make a class virtual?
What are the access modifiers available in java?
What is getkey () in java?
Is string a datatype?
What is an empirical question?
Is java free for commercial?
What methodology can be employed to locate substrings inside a string?
Explain the difference between abstract classes and interfaces in java?
What is a priority queue java?
What is finalize()? Is finalize() similar to a destructor?
What is the method to expand and collapse nodes in a jtree?
Can we inherit inner class?
What is static in java?
How to display all the prime numbers between 1 and 100
What are the disadvantages of object oriented programming?