why java does not support multiple inheritance
Answer Posted / dewanshu
Java support method overriding means both superclass and
subclass can have the same method name and number of
arguments.If java support multiple inheritance, 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.
TO remove such ambiguity problem java doen not support
multiple inheritance through extend but it support it
through interface.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the difference between interface & abstract class?
What is size of int in java?
What is the difference between a scrollbar and a scrollpane?
What is lexicographically smallest string?
What is == in java?
What is meant by 'bit masking' in java?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Which arithmetic operations can result in the throwing of an arithmeticexception?
Why does java have different data types for integers and floating-point values?
What is primitive array?
What method is used to specify a container's layout in java programming?
How many ways can an argument be passed to a subroutine and explain them?
What is string immutability?
Can you give few examples of final classes defined in java api?
What does string [] args mean?