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
Name container classes in java programming?
Which non-unicode letter characters may be used as the first character of an identifier?
Can we use catch statement for checked exceptions?
How do you ensure that n threads can access n resources without deadlock?
Explain runtime exceptions?
What do you mean by platform independence of Java?
What is a conditional statement explain with example?
What is the difference between final, finally and finalize()?
Which is easier .net or java?
describe method overloading
What is a “stateless” protocol ?
What is the file type?
What are the types of relation?
What is singleton service?
What is the difference between hashset and treeset in java?