Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How can u increase the heap size in the memory?

1000


What is the definition of tree ?

1029


What is the difference between jvm and jre? What is an interface?

1083


How do you clear an arraylist in java?

975


What are the differences between stringbuffer and stringbuilder?

1048


What are advantages of exception handling in java?

1012


Can we sort array in java?

938


Is string is a data type?

938


What is fail first in java?

1173


Is arraylist zero based?

1052


What classes of exceptions may be caught by a catch clause in java programming?

1169


Can bool be null?

981


Why is the main method declared static?

1118


Which class cannot be a subclass in java?

1010


Explain about transient variables in java?

1091