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

Does Java support multiple Inheritance?

Answer Posted / ujas doshi

No...Actually java does not support multiple inheritance.
You can say bcoz of reason mentioned by debapriya.

But if you want a class to be inherited from 2 classes you
can use a concept in java called interfaces..

class C extends A, extends B ---wrong, error, only one
class can be inherited

class C implements A, implements B ---fine, here A and B
are not classes but they are interfaces.

Now what are interfaces?
interfaces are similar to classes except a few things
1)Interfaces must contain static methods only

Is This Answer Correct ?    17 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data structures in java?

965


Why convert an applet to an application?

1093


What is a treeset class?

1000


What is a parameter in java?

981


What does it mean that a method or field is “static”?

969


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1972


What are keywords in programming?

1007


What are encapsulation, inheritance and polymorphism?

999


What does 0 mean in boolean?

973


List out five keywords related to exception handling ?

1007


What does you mean in math?

1078


Where are the card layouts used?

1058


What is a java predicate?

951


What is a default constraint?

1062


What is the current version of java?

1022