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 |
Explain runtime exceptions?
When should you make a function static?
What is the function of log?
What are data types in oop?
what is difference between requestprocessor and request dispatcher?
When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
Explain about global variables in Java?
Is sizeof a keyword in java programming?
How many tetrahedral voids are there in bcc?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is a map? What are the implementations of map?
what happens when we add the objects morethan the size limit to a hashmap