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 the difference between JDK and JVM?
What is a parameter used for?
What are different access specifiers in java? Explain
What are the main concepts of oops in java?
What is a heavyweight component?
What is the difference between throw and throws in java?
Why to use nested classes in java?
Can private members of a base class are inheritable justify?
What is a void method?
What are the properties of thread?
What is meant by 'Class access modifiers'?
Does constructor be static?
What restrictions are placed on method overriding in java programming?
What is the basic concepts of OOPS?
Why call by value prevents parameter value change?