why java does not support multiple inheritance

Answer Posted / rajiv

java does not support multiple inheritance because it does
not meet object oriented specification. Due to ambiguity
problem will arise if two or more superclass have the same
method name, and the super keyword will not be able to
decide which superclass to call. so we use interface to
solve this problem.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the bean persistent property?

783


How do you sort objects in java?

750


What is type inference in java8?

807


Can we override a variable in java?

774


What are triggers in DB? Explain their types. How do they work?

878


Write a function to find out longest palindrome in a given string?

831


What is the final variable?

946


What is arrays aslist in java?

737


What is the type of lambda expression?

744


What are user defined exceptions?

810


Why is inheritance used in java?

838


Explain different types of thread priorities ?

869


Is age discrete or continuous?

890


What does \ mean in regex?

857


How big is a boolean?

811