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 appletviewer?
what is ststic with example
What is the purpose of tostring() method in java?
What is string in java is it a data type?
Can you sort a list in java?
What is the difference between actual and formal parameters?
What is memory leak and how does java handle it?
Which is illegal identifier in java?
What is java and why do we need it? Explain
Is hashset ordered java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What is the difference between logical data independence and physical data independence?
What is java developer skills?
What are the steps that are followed when two computers connect through tcp?
What are the three best choices for a development environment?