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

Is array passed by reference in java?

979


Why java strings are immutable in nature?

979


What is the difference between and ?

943


How do I know if java is installed?

1015


What does a boolean method return?

1146


Can we initialize the final blank variable?

1029


What is a variable analysis?

1029


What is return type in java?

1010


Is java still relevant?

931


Which non-unicode letter characters may be used as the first character of an identifier?

960


What do you mean by access modifier?

967


Explain the difference between call by refrence and call by value?

972


Differentiate between class and structure.

1059


Explain about anonymous inner classes in java?

999


What is an immutable class? How to create an immutable class?

1002