why java does not support multiple inheritance

Answer Posted / smitha

Java supports multiple inheritence indirectly through the
use of interface. In case we are able to extend more than
one class then there would be a confusion of which method to
process in case both classes have same method name(Same
method signature also).

In case of using interfaces to support multiple inheritance
we escape this problem as we define the methods that are
needed only.

Is This Answer Correct ?    232 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we need to use internal iteration? When do we need to use external iteration?

613


Difference between == and .equals() ?

578


What is main function purpose?

529


Is java a software?

516


What technique can be employed to compare two strings?

578






Difference between default and protected access specifiers?

506


What is return data type?

563


What is java abstraction with example?

561


What is keyword in oop?

526


What is the maximum size of byte array in java?

542


Can a constructor be protected?

536


What is an empirical question?

545


What is nested loop? What is dangling else condition in it?

575


What are disadvantages of java?

525


How do you sort arraylist in descending order?

580