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 is difference between static class and normal class?

533


What is the driver class?

567


What are the different types of java?

561


What is anagram number?

458


How to do a true java ping from windows?

618






Why does it take so much time to access an applet having swing components the first time?

1398


Difference between predicate, supplier and consumer ?

585


What is structure of java heap? What is perm gen space in heap?

546


What is the difference between sleep and wait in java?

515


What is linked hashmap and its features?

548


What is polymorphism java example?

550


What is gc()?

585


What is the lifetime and scope of a variable?

520


What is the maximum size of list in java?

547


Can a class have multiple superclasses?

571