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

What is Recursion Function?

901


What is consumer in java?

731


List implementations of list interface?

810


What is the difference between form & report?

835


How many types of memory areas are allocated by jvm?

783


Does variable declaration allocate memory?

810


What are the benefits of java?

811


What is boolean strategy?

897


How do you add an element to a set in java?

788


Explain the pointers in Java?

825


What is the use of java?

742


Is java ee a framework?

746


What a static class can contains?

937


Explain static nested classes ?

835


What types of index data structures can you have in java?

879