why java does not support multiple inheritance
Answer Posted / smitha
Java supports multiple inheritence indirectly through the
use of interface. In case we are able to extend more than
one class then there would be a confusion of which method to
process in case both classes have same method name(Same
method signature also).
In case of using interfaces to support multiple inheritance
we escape this problem as we define the methods that are
needed only.
Is This Answer Correct ? | 232 Yes | 54 No |
Post New Answer View All Answers
What is Recursion Function?
What is consumer in java?
List implementations of list interface?
What is the difference between form & report?
How many types of memory areas are allocated by jvm?
Does variable declaration allocate memory?
What are the benefits of java?
What is boolean strategy?
How do you add an element to a set in java?
Explain the pointers in Java?
What is the use of java?
Is java ee a framework?
What a static class can contains?
Explain static nested classes ?
What types of index data structures can you have in java?