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 is multiple inheritance not allowed in java?

Answer Posted / haridini

Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the states of thread in java?

1033


What do you mean by static variable?

1116


Explain the difference between abstraction and encapsulation.

1029


Is singleton a bad practice?

1106


what is ststic with example

2117


Is it possible to instantiate the abstract class?

1004


What is sortedmap interface?

1050


How can an object be unreferenced?

1069


What are default methods ?

1107


What are the main uses of java?

1032


Why there are some null interface in java? What does it mean?

1186


Difference between Linked list and Queue?

1078


What are conditionals and its types?

1188


What is widening and narrowing in java? Discuss with an example.

1104


Explain about instanceof operator in java?

1118