why is multiple inheritance not allowed in java?

Answer Posted / haridini

Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you identify if jvm is 32-bit or 64-bit from java program?

540


What is exception in java?

570


What is array length?

507


What's the purpose of static methods and static variables?

600


What is difference between null and void?

535






What will be the output of round(3.7) and ceil(3.7)?

683


Is break statement can be used as labels in java?

509


What is the purpose of stub and skeleton?

549


What is scope of a variable?

606


What is tree node in java?

530


How much is a java license?

526


What is locale?

608


What is a double vs float?

538


What is isa relationship?

567


How do you override a method?

551