why is multiple inheritance not allowed in java?
Answer Posted / haridini
Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.
| Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
What are the states of thread in java?
What do you mean by static variable?
Explain the difference between abstraction and encapsulation.
Is singleton a bad practice?
what is ststic with example
Is it possible to instantiate the abstract class?
What is sortedmap interface?
How can an object be unreferenced?
What are default methods ?
What are the main uses of java?
Why there are some null interface in java? What does it mean?
Difference between Linked list and Queue?
What are conditionals and its types?
What is widening and narrowing in java? Discuss with an example.
Explain about instanceof operator in java?