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 the purpose of default constructor?

792


What is an off by one error in java?

728


What is final?

816


What are the different ways to handle exceptions?

745


Explain listiterator and methods in listiterator?

762


What is jdbc api?

758


Is null or empty java?

763


Can we have try without catch block?

860


What is the default size of arraylist in java?

739


How does the garbage collector works in java?

795


What is binary tree in java?

771


What is constructor and its types?

797


Why do you canvas?

785


Compare java and python.

768


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

750