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

Can we make main() thread as daemon?

1153


Is multiple inheritance supported by java?

1048


What is the difference between assignment and initialization?

1092


When should a function throw an exception?

1100


What is the main difference between java platform and other platforms?

1172


Explain the difference between static and dynamic binding in java?

1112


Can we overload the methods by making them static?

1045


What is the difference between a vector & an array list?

1215


What is a qms manual?

1040


What is better- service oriented or batch oriented solutions?

2293


What is string :: npos?

1173


what is the major difference between linkedlist and arraylist in java?

1291


What are the escape sequences in java?

1071


What are wrapper classes in java?

1125


What is primitive array?

942