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

Explain what access modifiers can be used for methods?

1076


How do you clear an arraylist in java?

985


Which class is used by server applications to obtain a port and listen for client requests?

963


Is string is a data type?

941


What is the difference between Java1.4 and Java1.5

2305


What is the difference between abstract classes and interfaces?

1015


What is difference between hashset and hashmap?

1111


Explain about strings in java?

1068


What is Hierarchy of exception?

1079


What is difference between static and final?

1066


What is numeric function?

1003


What is arrays sort in java?

961


Which package is used for pattern matching with regular expressions?

1108


How do you check if a character in a string is a digit or letter?

1070


How do you get length in java?

1024