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
Can we create our own daemon thread?
What is type safety in java?
How many bits is a char?
What is autoboxing in java?
What is scanner in java?
Do we need to manually write Copy Constructor?
What are different types of classloaders?
Define inheritance with reference to java.
Write a program to print the pattern given below
What isan abstract class and when do you use it?
What’s the difference between unit, integration and functional testing?
Why is java logo a cup of coffee?
what are different ways in which a thread can enter the waiting state? : Java thread
Can we create object of static class?
Define jit compiler?