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

because it genereate diamond problem. e.g. Class A has
Show()Method and Class B,C extends in A class so show() will
come in B,C class.now Class D extends C class and access
show() method then it will generate Error such as multiple
Defination.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable declaration and definition?

977


What is a generic code?

1007


What is the purpose of extern variable?

980


Why destructor is not used in java?

943


Can list be null in java?

1002


How do you declare a string variable?

985


What is the purpose of a volatile variable?

995


Why hashcode is used in java?

939


What is the difference between the font and fontmetrics classes in java programming?

1070


What data structures are used to perform recursion?

1012


How many types of methods are there?

998


What is an interoperable application in java ?

967


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

1044


Is it possible for a yielded thread to get chance for its execution again?

918


What is core java called?

944