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
Why enumeration is faster than iterator?
Do you know how to reverse string in java?
What is the instance of an object?
What is array in java?
How do singleton patterns work?
Why super is first line in java?
What is the difference between the final method and abstract method?
What is number data type in java?
How do you invoke a method?
Why webdriver is an interface?
Is main a function?
What is the difference between the size and capacity of a vector?
Can you call one constructor from another if a class has multiple constructors?
Can we extend immutable class?
How to create a thread in java?