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 data object example?

525


Can java object be locked down for exclusive use by a given thread?

572


What is the difference between and ?

500


What is the platform?

517


explain copyonwritearraylist and when do we use copyonwritearraylist?

530






What is meant by object?

568


What is the difference between preparedstatement and statement in java?

542


What is the use of hashmap in java?

543


What are identifiers in java?

567


Say any two properties in beans?

626


Why string is not thread safe?

526


What are the disadvantages of using inner classes?

544


Which package has light weight components?

552


what is a green thread? : Java thread

565


What do you understand by access specifiers in Java?

576