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 the difference between hashmap and hashtable in java?

1173


What is meant by main method?

1116


What is an example of declaration?

1077


Explain the pointers in Java?

1106


Why is it called a string?

1050


What is a concrete classes? Is Java object class is concrete class?

1026


What is autoboxing in java?

1109


What is java ceil?

1077


What do you understand by java?

1048


How do listeners work?

1099


What is api data?

1050


How does multithreading take place on a computer with a single cpu?

1055


How many bits is a double?

1058


what is the difference between future and callable interface in java?

1315


How can we make copy of a java object?

1212