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 java does not support multiple inheritance

Answer Posted / vishwanath

java doesn't support multiple inheritance directly because it leads to overiding of methods when both extended class have a same method name. this will leads to ambiguity in executing. this problem can be solved using interface which works similar to the multiple inheritance but the methods are defined in the subsequent classes so it does not create any ambiguity.

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 subsequence of a string?

1100


What data type is true or false?

1043


What is bubble sort in java?

1055


What is an image buffer?

996


Can I declare a class as private?

1087


What is starvation?

1321


What are wrapper classes in java?

1069


What are the differences between path and classpath variables?

1042


What is the purpose of static methods and static variables?

1071


What is a copy constructor in java?

1125


What is difference between static and final?

1068


Is object a data type in java?

1115


Is namespace same as package in java?

984


What is the purpose of extern variable?

1018


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1058