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

State the merge-sort principle and its time complexity.

755


What does main method?

777


What is api in java?

752


What is finalize()? Is finalize() similar to a destructor?

742


Can an interface extend a class?

737


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

757


Does java set allow duplicates?

774


What is singleton class in java and how can we make a class singleton?

818


Can a class have an interface?

748


What is meant by nested loop?

792


What is volatile data type?

737


Which is easier netbeans or eclipse?

814


What is meant by class loader? How many types are there? When will we use them?

723


What is sortedmap in java?

771


Can a class be private in java?

742