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

What is the difference between interface & abstract class?

1032


What is size of int in java?

1056


What is the difference between a scrollbar and a scrollpane?

1047


What is lexicographically smallest string?

1060


What is == in java?

1008


What is meant by 'bit masking' in java?

1181


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

929


Which arithmetic operations can result in the throwing of an arithmeticexception?

1016


Why does java have different data types for integers and floating-point values?

1005


What is primitive array?

897


What method is used to specify a container's layout in java programming?

1125


How many ways can an argument be passed to a subroutine and explain them?

1022


What is string immutability?

1098


Can you give few examples of final classes defined in java api?

999


What does string [] args mean?

1005