why is multiple inheritance not allowed in java?

Answer Posted / ganesh

When the multiple inheritance is allowed, means when a language allows the class to extend multiple classes, That leads to the ambiguity as to which class method to consider, when two of its parents have the same method signature. This is called Diamond ring problem

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between iterator and enumeration in java?

527


How can you handle java exceptions?

539


Can you explain the private protected field modifier?

578


what is meant wrapper classes?

614


Explain a situation where finally block will not be executed?

583






Difference difference paint() and paintcomponent()?

538


what is use of functional interface in java 8?

567


Does substring create a new object?

537


How to create an interface?

629


How do you escape json?

544


Write a java program to count the number of words present in a string?

540


Name few java 8 annotations ?

576


What is a parameter in java?

552


How will you reverse a singly-link list?

605


What is boolean keyword in java?

616