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
What do you understand by the bean persistent property?
How do you sort objects in java?
What is type inference in java8?
Can we override a variable in java?
What are triggers in DB? Explain their types. How do they work?
Write a function to find out longest palindrome in a given string?
What is the final variable?
What is arrays aslist in java?
What is the type of lambda expression?
What are user defined exceptions?
Why is inheritance used in java?
Explain different types of thread priorities ?
Is age discrete or continuous?
What does \ mean in regex?
How big is a boolean?