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 the difference between JDK and JVM?

1272


What is a parameter used for?

963


What are different access specifiers in java? Explain

1125


What are the main concepts of oops in java?

1747


What is a heavyweight component?

1025


What is the difference between throw and throws in java?

1101


Why to use nested classes in java?

1120


Can private members of a base class are inheritable justify?

929


What is a void method?

921


What are the properties of thread?

930


What is meant by 'Class access modifiers'?

1048


Does constructor be static?

1038


What restrictions are placed on method overriding in java programming?

1002


What is the basic concepts of OOPS?

1202


Why call by value prevents parameter value change?

1077