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
Explain about exception propagation?
What is a treeset class?
Is array size fixed in java?
Why Java is not pure Object Oriented language?
What happens if I remove static from main method?
What does || mean in vectors?
What class allows you to read objects directly from a stream?
What do you understand by java?
What is the difference between sleep and wait in java?
How do you achieve polymorphism in java?
What are different types of encoding?
List the different types of classloaders in java.
What are disadvantages of java?
What is a functional interface?
What is the difference between class forname and new?