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 difference between iterator and enumeration in java?
How can you handle java exceptions?
Can you explain the private protected field modifier?
what is meant wrapper classes?
Explain a situation where finally block will not be executed?
Difference difference paint() and paintcomponent()?
what is use of functional interface in java 8?
Does substring create a new object?
How to create an interface?
How do you escape json?
Write a java program to count the number of words present in a string?
Name few java 8 annotations ?
What is a parameter in java?
How will you reverse a singly-link list?
What is boolean keyword in java?