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 / ramakrishna

JAVA omits many rarely used, poorly understood,
confusing features of C++ that in our experience bring more
grief than bene&#64257;t. This primarily consists of operator
overloading (although it does have method overloading),
multiple inheritance, and extensive automatic coercions.

Who better than Dr. James Gosling is qualified to make a
comment on this. This paragraph gives us an overview and he
touches this topic of not supporting multiple-inheritance.
Java does not support multiple inheritance

First lets nail this point. This itself is a point of
discussion, whether java supports multiple inheritance or
not. Some say, it supports using interface. No. There is no
support for multiple inheritance in java. If you do not
believe my words, read the above paragraph again and those
are words of the father of Java.

This story of supporting multiple inheritance using
interface is what we developers cooked up. Interface gives
flexibility than concrete classes and we have option to
implement multiple interface using single class. This is by
agreement we are adhering to two blueprints to create a class.

This is trying to get closer to multiple inheritance. What
we do is implement multiple interface, here we are not
extending (inheriting) anything. The implementing class is
the one that is going to add the properties and behavior. It
is not getting the implementation free from the parent
classes. I would simply say, there is no support for
multiple inheritance in java.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about anonymous inner classes in java?

1090


What is this () in java?

1029


What is java abstraction with example?

1070


Mention some features of java?

964


What is output buffer?

1055


What happens to the Exception object after handling an exception?

2372


How do you get the length of a string in java?

1010


Can a singleton class be inherited?

973


Why do we need strings in java?

995


Which methods are used during serialization and deserialization process?

991


How do you sort in ascending order in java?

875


Can we pass a primitive type by reference in java? How

936


What is private static class in java?

1020


What is parameters example?

1035


How do you invoke a method?

1007