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

How does thread synchronization occurs inside a monitor?

1056


What is method in research paper?

1048


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1010


What is static keyword?

1069


What is your platform?s default character encoding and how to know this?

2332


Explain abstract class in java?

999


What is use of static in java?

1107


What are different types of constants?

978


What is an off by one error in java?

910


What is jrmp?

910


What are constants?

1004


What is a Presistent Object?

1185


Define how can we find the actual size of an object on the heap?

1128


List primitive java types?

987


Can we convert stringbuilder to string in java?

945