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

can used Protected Class outside Function.?

1152


How do you escape json?

1038


How many types of array are there?

1050


What is difference between calling start() and run() method of thread?

1208


What is java beans?

1050


Can a method inside a interface be declared as final?

1044


How do you sort in descending order in java using collections sort?

956


what is deadlock? : Java thread

1060


What is mutable object and immutable object?

1174


Difference difference paint() and paintcomponent()?

1047


Define a package.

1170


Can a static method be overridden in java?

1057


What differences exist between iterator and listiterator?

1086


How does callback work in java?

1120


What does regex mean?

1073