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
How does thread synchronization occurs inside a monitor?
What is method in research paper?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is static keyword?
What is your platform?s default character encoding and how to know this?
Explain abstract class in java?
What is use of static in java?
What are different types of constants?
What is an off by one error in java?
What is jrmp?
What are constants?
What is a Presistent Object?
Define how can we find the actual size of an object on the heap?
List primitive java types?
Can we convert stringbuilder to string in java?