why java is not supporting multiple inheritence?
Answers were Sorted based on User's Feedback
Answer / ravikiran
Because we cann't extend more that one class with in a
class. But indirectly interfaces will provide the same
functionality by implementing more than one interfaces
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / mani.d [wipro]
Java doesn't support mutiple inheritance because
of 'Diamond problem'. The 'diamond problem' is an ambiguity
that can occur when a class multiple intehertis from two
classes that both descend from a common superclass.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / sunilkumar12317
we can't extends two class to another class
| Is This Answer Correct ? | 2 Yes | 1 No |
In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?
What is the preferred size of a component?
Can you sort a list in java?
Which number is denoted by leading zero in java?
List primitive java types?
What about interthread communication and how it takes place in java?
Explain the difference between runnable and callable interface in java?
Name some classes present in java.util.regex package.
How many digits is int32?
What is java console application?
What is update method and when it is called?
when System.out.println("") is executed what happens in the back ground?