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

What is hasnext in java?

1064


Why spring singleton is not thread safe?

1048


Explain enumeration in java?

1047


Can we assign integer value to char in java?

1081


What is arraylist e?

1141


how are methods defined?

1104


Which is better stringbuffer or stringbuilder?

968


What is the transient keyword?

2342


Can we create our own wrapper class in java?

1014


Can you pass by reference in java?

1034


How to do encapsulation in java?

1103


Explain static nested classes ?

1172


How objects are stored in java?

1090


Why do we create threads in java?

1346


What is the relationship between class and object?

1091