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
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What are annotations in java?
What is classpath?
What is a boolean expression in java?
Is string an object?
What is preflight request?
What is hash in java?
Is alive and join method in java?
What is the hashcode () and equals () used for?
Why hashset is used in java?
What is your platform’s default character encoding?
Can java object be locked down for exclusive use by a given thread?
What is bytecode verifier?
Give the hierarchy of inputstream and outputstream classes.
Define jre i.e. Java runtime environment?