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
Explain the difference between comparator and comparable in java?
What is singleton class and how can we make a class singleton?
Why is a constant variable important?
What is static keyword?
What is the basic concept of java?
What are thread priorities and importance of thread priorities in java?
What is quick sort in java?
What is runtime polymorphism or dynamic method dispatch?
What does bitwise or mean?
Is linkedlist thread safe in java?
Is java ee a framework?
Explain jvm, jre, and jdk?
why not override thread to make a runnable? : Java thread
What's the purpose of static methods and static variables?
What is a dynamic array in java?