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
Describe 2 different ways to concatenate two strings.
Can we store variables in local blocks?
What does 3 dots mean in java?
What is numeric data type?
What is array and arraylist in java?
Which package is imported by default?
What do you mean by platform independence of Java?
What is an infinite loop?
Is set ordered?
What is instance means in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What do you know about java?
When should I use a singleton?
Why do we use bufferedreader?
What is jagged array in java?