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
Is integer a class?
What is derived datatype?
Name few java 8 annotations ?
What is a war file?
Why main method is static in java?
What is a predicate method?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What are use cases?
Is java hard to learn?
Write a java program to generate fibonacci series ?
Can we assign the reference to this variable?
What is a boolean flag in java?
Difference between Linked list and Queue?
Can a static class have a constructor java?
Are global variables initialized to zero?