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 / midhun h kumar

No ...
Multiple inheritance is not allowed in Java...
but infact we can achieve the functionality using interfaces...
we can define interfaces and any class can implement these
interfaces..
a class can implement any number of interfaces but can
extend only one class..
thus we can achieve what we expect to get from multiple
inheritance thru interfaces...

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is double bigger than float?

918


How do I write a self declaration?

1029


Is java call by reference?

931


Write a program to solve producer consumer problem in java?

962


What is string intern in java?

980


When we should use serialization?

975


Why do we need wrapper class?

949


explain local datetime api in java8?

973


Explain about the security aspect of java?

931


What is boolean data type in java?

945


Explain the significance of class loaders in bootstrap?

898


Difference between this() and super() in java ?

1034


List types of storage classes in java?

1082


How do you do absolute value in java?

933


Can we sort hashmap in java?

909