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
Explain the difference between an Interface and an Abstract class?
What is stringjoiner ?
Is a boolean variable?
if u open login & logout ,how can udisplay the timelogin & logout members ?
Why does java have two ways to create child threads? Which way is better?
java Technical questions asked by JPMC
What are the core java topics?
how to open and edit XML file in Weblogic???
What if I write static public void instead of public static void in java?
How many types of assembly languages are there?
What is java in simple terms?
Variable of the boolean type is automatically initialized as?
What is executor memory?
Compare Mutex and Semaphore in java.
What is io stream in java?