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 set ordered in java?

568


What is the significance of continue jump statement? Explain with an example.

737


What are predicates in java 8?

527


What is a instance variable in java?

542


What do you mean by boolean?

568






What is an iterator java?

527


What is the use of arraylist in java?

520


Explain the difference between static and dynamic binding in java?

538


How do you format in java?

543


Is overriding possible in java?

499


How does a for loop work?

502


What is boolean law?

512


Differences between C and Java?

611


How many boolean functions are there?

502


java program with complete 4 oops concepts implemented example

2726