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


Please Help Members By Posting Answers For Below Questions

In how many ways we can create threads in java?

863


What is bufferedwriter?

748


What are the pillars of java?

680


What an i/o filter?

736


What is java life cycle?

768


What is the maximum size of a string in java?

758


why using interface interface ?

1773


What is void in java?

824


How will you reverse a link list without using recursion?

794


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

902


Can we override singleton class?

740


What is getclass () getname () in java?

891


Which programming language is most secure?

742


What about static nested classes in java?

834


Why vector is used in java?

771