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

Explain the difference between an Interface and an Abstract class?

912


What is stringjoiner ?

769


Is a boolean variable?

770


if u open login & logout ,how can udisplay the timelogin & logout members ?

1989


Why does java have two ways to create child threads? Which way is better?

824


java Technical questions asked by JPMC

4824


What are the core java topics?

815


how to open and edit XML file in Weblogic???

1799


What if I write static public void instead of public static void in java?

856


How many types of assembly languages are there?

742


What is java in simple terms?

795


Variable of the boolean type is automatically initialized as?

808


What is executor memory?

752


Compare Mutex and Semaphore in java.

793


What is io stream in java?

772