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

Java support method overriding means both superclass and
subclass can have the same method name and number of
arguments.If java support multiple inheritance, ambiguity
problem will arise if two or more superclass have the same
method name, and the super keyword will not be able to
decide which superclass to call.
TO remove such ambiguity problem java doen not support
multiple inheritance through extend but it support it
through interface.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java set allow duplicates?

1032


What do you understand by soft reference?

991


How do singleton patterns work?

924


What is parsing in grammar?

982


Why can we not override static method?

1069


Is java a virus?

901


What does nullpointerexception mean?

1030


Can a class be final?

904


What is the exact difference in between unicast and multicast object? Where we will use?

948


What defines function?

927


Give some features of interface?

1026


How to create an immutable class?

1046


What is substring 1 in java?

1076


Where is jre installed?

995


Explain what is encapsulation?

1025