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


Please Help Members By Posting Answers For Below Questions

What is a singleton class in Java?

506


List any five features of java?

567


Can memory leak happen java?

595


Difference between comparator and comparable in java?

615


Differentiate jar and war files?

593






What does this () mean in java?

545


Is treeset sorted in java?

579


What is mean by encoding?

627


What is Major and importance difference between for and foreach loop ?

573


Can an object be null?

548


What is the original name of java?

543


Explain abstract class in java?

556


What do bitwise operators do?

527


What is :: operator in java?

505


What are the kinds of polymorphism?

609