why java does not support multiple inheritance

Answer Posted / shiva

multiple inheritance means a sub class which is derived from
two base classes.

assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.

now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many decimal digits is 64 bit?

536


What is an interoperable application in java ?

590


What's the default access specifier for variables and methods of a class?

520


What is meant by attribute?

600


Is string passed by reference in java?

552






what is thread? What are the high-level thread states? : Java thread

794


What is sorting in java?

540


How to print an arraylist in java?

509


What is an empty string in css?

539


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

639


What does s mean in regex?

555


How do you decide when to use arraylist and linkedlist?

538


Write an algorithm for quick sort?

619


Why is stringbuffer thread safe?

573


Do I need java on my pc?

515