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
How can u increase the heap size in the memory?
What is the definition of tree ?
What is the difference between jvm and jre? What is an interface?
How do you clear an arraylist in java?
What are the differences between stringbuffer and stringbuilder?
What are advantages of exception handling in java?
Can we sort array in java?
Is string is a data type?
What is fail first in java?
Is arraylist zero based?
What classes of exceptions may be caught by a catch clause in java programming?
Can bool be null?
Why is the main method declared static?
Which class cannot be a subclass in java?
Explain about transient variables in java?