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
When will we prefer to use set and list in java and why?
Does java have a compiler?
What is a top level class in java?
How infinite loop is declared?
What is unmodifiable list in java?
What is passed by reference and pass by value ?
What are the major advantages of internal iteration over external iteration?
what are different ways in which a thread can enter the waiting state? : Java thread
What is the difference between exception and error in java?
What is a generic code?
How do you escape sequences in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What do you understand by Header linked List?
v-model life cycle
Can private method static?