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

Explain the usage of this with constructors?

1028


What is the difference between compile-time polymorphism and runtime polymorphism?

998


What is the meaning of course?

1100


Why set is used in java?

1018


How to find the largest value from the given array.

1012


How do you remove an object from an arraylist in java?

972


Name some classes present in java.util.regex package.

1031


Where to store local variables?

1106


Why java is used everywhere?

1010


Can you explain the cs option of java interpreter?

953


What does || mean in vectors?

931


What is the largest number a double can hold?

1047


What is string made of?

960


What is boolean keyword in java?

1130


How a string is stored in memory?

1022