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...

Is multiple inheritance allowed in Java? Why ?

Answer Posted / shivaprasad

Multiple inheritance is not allowed in java because it creates
DIAMOND PROBLEM.
DIAMOND PROBLEM: Suppose classes B and C extend A and
class D extends to both B and C(multiple inheritance). Now,
if D calls a method in A then it does not know from which
class it has to inherit(either B or C). This is called
diamond problem.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is appletviewer?

1099


what is ststic with example

2117


What is the purpose of tostring() method in java?

1231


What is string in java is it a data type?

1068


Can you sort a list in java?

1032


What is the difference between actual and formal parameters?

999


What is memory leak and how does java handle it?

1030


Which is illegal identifier in java?

1139


What is java and why do we need it? Explain

1200


Is hashset ordered java?

1155


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1071


What is the difference between logical data independence and physical data independence?

1088


What is java developer skills?

1025


What are the steps that are followed when two computers connect through tcp?

1038


What are the three best choices for a development environment?

1155