why java does not support mulitple inheritance directly?
Answers were Sorted based on User's Feedback
Answer / kranthi kumar adari.
Java doesnot support multiple inheritance bcoz it leads to
ambiguity when two base classes are having same function
signature.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sumit pal singh
java Doesn't Support multiple inheritance.when two super classes have same variable name and same method name .then subclass confused from which class variable and method will be executed.due to this ambiguity is produced and java is a simple programming language not produce any confusion to developer.so multiple inheritance is restricted in java.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravikiran
Because we cann't extend more than one class at once
| Is This Answer Correct ? | 4 Yes | 10 No |
How to check if a list is sorted in java?
What does flagged out mean?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is clipping and repainting and what is the relation between them?
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types
How do you read and print a string in java?
Is it possible to write static method in abstract class? justyfy your answer?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is a java developer salary?
How concurrent hashmap works?
Is arraylist a class in java?
What is user defined exception?