Answer Posted / shivaprasad
Multiple inheritance is not allowed in java because it creates
DIAMOND PROBLEM.
DIAMOND PROBLEM: Suppose classes B and C extend A and
class D extends to both B and C(multiple inheritance). Now,
if D calls a method in A then it does not know from which
class it has to inherit(either B or C). This is called
diamond problem.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
what is deadlock? : Java thread
Does java allow default arguments?
How to sort numbers in java without array?
Is passing by reference faster?
What is treeset in java collection?
Do we have pointers in java?
What are the differences between string, stringbuffer and stringbuilder?
I don’t want my class to be inherited by any other class. What should I do?
What is a get method?
Can list contain null in java?
Difference between operator overloading and function overloading
List primitive java types?
What is a type parameter in java?
What is volatile keyword in java
difference between byte stream class and character stream class?