why java does not support mulitple inheritance directly?
Answer Posted / 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 |
Post New Answer View All Answers
State differences between C and Java?
Can we use catch statement for checked exceptions?
Where is the find and replace?
What is the purpose of the runtime class in java programming?
What is a byte string?
What do you understand by access specifiers in Java?
Is string thread safe in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is console based application in java?
Explain about abstract classes in java?
What do you understand by Header linked List?
What is scanner in java?
What are benefits of java?
What is method overloading with type promotion?
What is sorting in java?