why is multiple inheritance not allowed in java?

Answer Posted / haridini

Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an interface in java?

561


Explain the importance of finally block in java?

568


What are the differences between this and super keyword?

532


What is string pooling concept?

551


Explain runtime exceptions?

741






Explain the protected field modifier?

591


What is locale?

600


What is jar?

633


Can you instantiate the math class in Java?

607


What are the files generated after using IDL to java compiler?

584


Can we return null in java?

641


What is the benefit of using enum to declare a constant?

661


What is unicode in java?

506


How transient variable is different from volatile variable?

558


Is there any difference between synchronized methods and synchronized statements?

582