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


Please Help Members By Posting Answers For Below Questions

Explain about exception propagation?

583


What is a treeset class?

557


Is array size fixed in java?

534


Why Java is not pure Object Oriented language?

639


What happens if I remove static from main method?

519






What does || mean in vectors?

472


What class allows you to read objects directly from a stream?

866


What do you understand by java?

561


What is the difference between sleep and wait in java?

505


How do you achieve polymorphism in java?

519


What are different types of encoding?

578


List the different types of classloaders in java.

501


What are disadvantages of java?

515


What is a functional interface?

543


What is the difference between class forname and new?

543