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

How would you dynamically allocate memory to an array?

822


What is the map interface in java programming?

799


Can a class have 2 constructors?

699


Why is sizeof not a function?

800


Why java is secure? Explain.

795


What are the legal operands of the instanceof operator?

808


Why we override equals() method?

804


Does java allow default arguments?

796


What do you mean by constant time complexity?

854


What is reverse function?

813


What does regex mean?

793


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

840


What are the different data types in java?

779


What is abstract class constructor called?

805


Explain where variables are created in memory?

797