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 check whether the list is empty or not in java?

730


Is set ordered?

735


How to perform merge sort in java?

804


What is an object in java and how is it created?

830


What about features of local inner class?

835


Can we change the value of static variable?

708


What are the disadvantages of using inner classes?

767


What is used of static keyword in java?

770


What is a method in java?

724


What is difference between classpath and path variables in java?

873


What is byte code and why is it important to java’s use for internet programming?

815


What is set in java?

761


What is difference between java and java ee?

762


What is the public method modifier?

746


What is meant by main method?

787