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
How would you dynamically allocate memory to an array?
What is the map interface in java programming?
Can a class have 2 constructors?
Why is sizeof not a function?
Why java is secure? Explain.
What are the legal operands of the instanceof operator?
Why we override equals() method?
Does java allow default arguments?
What do you mean by constant time complexity?
What is reverse function?
What does regex mean?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What are the different data types in java?
What is abstract class constructor called?
Explain where variables are created in memory?