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
What is a singleton class in Java?
List any five features of java?
Can memory leak happen java?
Difference between comparator and comparable in java?
Differentiate jar and war files?
What does this () mean in java?
Is treeset sorted in java?
What is mean by encoding?
What is Major and importance difference between for and foreach loop ?
Can an object be null?
What is the original name of java?
Explain abstract class in java?
What do bitwise operators do?
What is :: operator in java?
What are the kinds of polymorphism?