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
What is the purpose of default constructor?
What is an off by one error in java?
What is final?
What are the different ways to handle exceptions?
Explain listiterator and methods in listiterator?
What is jdbc api?
Is null or empty java?
Can we have try without catch block?
What is the default size of arraylist in java?
How does the garbage collector works in java?
What is binary tree in java?
What is constructor and its types?
Why do you canvas?
Compare java and python.
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?