why java does not support multiple inheritance

Answer Posted / shiva

multiple inheritance means a sub class which is derived from
two base classes.

assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.

now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java hashset ordered?

577


What is the benefit of inner / nested classes ?

527


What’s the difference between callable and runnable?

549


What does || || mean in math?

516


What is the meaning of 3 dots in java?

682






Why we do exception handling in java and how many types of exceptions are there?

549


Explain what are final variable in java?

578


What restrictions are placed on method overloading in java programming?

575


What are the types of strings?

570


Explain throw keyword in java?

615


How many arguments can a method have java?

544


Why map is used in java?

584


Is it possible to compare various strings with the help of == operator?

550


How do you detect memory leaks?

586


Explain method overloading?

573