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
can used Protected Class outside Function.?
How do you escape json?
How many types of array are there?
What is difference between calling start() and run() method of thread?
What is java beans?
Can a method inside a interface be declared as final?
How do you sort in descending order in java using collections sort?
what is deadlock? : Java thread
What is mutable object and immutable object?
Difference difference paint() and paintcomponent()?
Define a package.
Can a static method be overridden in java?
What differences exist between iterator and listiterator?
How does callback work in java?
What does regex mean?