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 are the java ide’s?

571


How do you end a program?

548


What is ternary operator?

565


How many static init can you have?

680


Is string a wrapper class?

512






What is the difference between static and non-static variables in java programming?

519


What Is Composition?

579


How do you use nextline in java?

502


Explain, java is compatible with all servers but not all browsers?

607


What is jit compiler ?

575


Which is the best approach for creating thread ?

721


Which sorting algorithm is best in java?

535


How many digits can a float hold?

535


Explain all java features with real time examples

1204


What is a numeric literal?

523