why java does not support multiple inheritance
Answer Posted / neeraj kumar singh
in multiple inheritance there are a number of base class so
when ever we use super keyword to call any method then
compiler do not recognize the base class form which property
and method have to use.since there is only one way to call
base class method and property which is super keyword. so
because of super keyword, java do not support multiple
inheritance but it is possible with help of interface.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the characteristics of java?
How do you remove spaces in java?
What is the purpose of the System class?
How to handle a web browser resize operation?
How do you bind variables?
Is int primitive data type?
Is java pass by value or pass by reference?
Is this valid in java ? Can we instantiate interface in java?
What is method reference?
How do generics work in java?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is an image buffer?
I don’t want my class to be inherited by any other class. What should I do?
What about method local inner classes or local inner classes in java?
What is split return?