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
State the merge-sort principle and its time complexity.
What does main method?
What is api in java?
What is finalize()? Is finalize() similar to a destructor?
Can an interface extend a class?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
Does java set allow duplicates?
What is singleton class in java and how can we make a class singleton?
Can a class have an interface?
What is meant by nested loop?
What is volatile data type?
Which is easier netbeans or eclipse?
What is meant by class loader? How many types are there? When will we use them?
What is sortedmap in java?
Can a class be private in java?