Why does java doesnot support multiple inheritance?
Answer Posted / rathnakar
--> Java follows Super Class Object and Sub Class reference
at runtime to excute inherited and overridden methods.
--> Java doesnot support multiple inheritence by using
classes.becoz java compiler gets ambiguity if one method
is defined in many child classes. this happens due to
above reason
--> so execution fails . but it can be achieved using
interfaces. becoz it method over riding and every child
class is identified uniquely w.rt to interface.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Define how objects are stored in java?
What is meant by 'bit masking' in java?
Can we overload destructor in java?
What are the uses of java?
What are advantages and disadvantages of OOPs?
Is jdk required on each machine to run a java program?
When throws keyword is used?
What do the thread?class methods run() and start() do?
What are streams in java 8?
Is null or empty java?
What is the difference between method and means?
How many functional interfaces does java 8 have?
What is vector?
How can we create a thread in java?
What is a java predicate?