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 a function in programming?
Why can we not override static method?
What is difference between float and double?
What is hashtable and explain features of hashtable?
Does A Class Inherit The Constructors Of Its Superclass?
What is abstract class? Explain
What is the r character?
How do you compare objects in java?
Is Constructor possible in abstract class in java ?
Can list be null in java?
What is garbage collection? What is the process that is responsible for doing that in java?
Can inner class extend any class?
How do you download stubs from Remote place?
What do you understand by java?
What is private protected in java?