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
When do we need to use internal iteration? When do we need to use external iteration?
Difference between == and .equals() ?
What is main function purpose?
Is java a software?
What technique can be employed to compare two strings?
Difference between default and protected access specifiers?
What is return data type?
What is java abstraction with example?
What is keyword in oop?
What is the maximum size of byte array in java?
Can a constructor be protected?
What is an empirical question?
What is nested loop? What is dangling else condition in it?
What are disadvantages of java?
How do you sort arraylist in descending order?