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 / shiva

multiple inheritance means a sub class which is derived from
two base classes.

assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.

now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why unicode is important?

940


State the significance of public, private, protected class?

1107


What is use of functional interface in java 8? Explain

1017


What type of variable is error flag?

1071


What are the major drawbacks of external iteration?

1063


What is finalize()?

1195


Why is multiple inheritance not supported in java?

1031


How can we run a java program without making any object?

1044


What is the difference between synchronized and synchronized block?

1066


What are the six ways to use this keyword?

1061


What is the use of singleton?

965


What is a superclass?

1347


Can I uninstall java?

1051


What is illegal identifier in java?

1013


Explain the term virtual machine?

1047