why java does not support multiple inheritance
Answer Posted / dewanshu
Java support method overriding means both superclass and
subclass can have the same method name and number of
arguments.If java support multiple inheritance, ambiguity
problem will arise if two or more superclass have the same
method name, and the super keyword will not be able to
decide which superclass to call.
TO remove such ambiguity problem java doen not support
multiple inheritance through extend but it support it
through interface.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Does java set allow duplicates?
What do you understand by soft reference?
How do singleton patterns work?
What is parsing in grammar?
Why can we not override static method?
Is java a virus?
What does nullpointerexception mean?
Can a class be final?
What is the exact difference in between unicast and multicast object? Where we will use?
What defines function?
Give some features of interface?
How to create an immutable class?
What is substring 1 in java?
Where is jre installed?
Explain what is encapsulation?