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 are variable names?

979


What are the different types of inheritance in java?

991


Name component subclasses that support painting in java programming?

1071


What does main method?

981


How do I get a substring?

978


what is comparable and comparator interface?

996


Why method overriding is used?

1098


What is primitive data type in java?

985


How can we create an immutable class in java?

1066


Can a class be declared as protected?

1014


What is a predicate method?

1017


When does an object becomes eligible for garbage collection in java?

1064


Can we declare register variable as global?

933


How is java hashmap implemented?

1031


Can we have multiple public classes in a java source file?

1192