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

Java.util.regex consists of which classes?

518


Explain the importance of throws keyword in java?

545


Name few "optional" classes introduced with java 8 ?

624


How to create a thread in java?

587


Explain the difference between transient and volatile in java?

557






How to convert string to char and vice versa?

492


How to implement an arraylist in java?

488


What the difference is between execute, execute Query, execute Update?

352


What is the static block?

563


explain different ways of using thread? : Java thread

547


Is empty string in java?

514


Is arraylist an object in java?

577


Is heap stored in ram?

493


What does opcode mean?

506


What is Applet Stub Interface ?

1942