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
Which is faster set or list in java?
How can we break singleton in java?
Are strings immutable in java?
Is java still necessary?
What is map and hashmap in java?
What is vector?
What is string and its types?
How does linkedhashmap work in java?
Is array a class in java?
What is a ternary operator in java? What is an interface?
Is null false in java?
What is the purpose of file class?
What does g mean in regex?
What is outofmemoryerror in java?
How to change value in arraylist java?