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...

why java does not support multiple inheritance

Answer Posted / smitha

Java supports multiple inheritence indirectly through the
use of interface. In case we are able to extend more than
one class then there would be a confusion of which method to
process in case both classes have same method name(Same
method signature also).

In case of using interfaces to support multiple inheritance
we escape this problem as we define the methods that are
needed only.

Is This Answer Correct ?    232 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between comparator and comparable in java?

1027


What is singleton class and how can we make a class singleton?

1152


Why is a constant variable important?

997


What is static keyword?

1245


What is the basic concept of java?

1068


What are thread priorities and importance of thread priorities in java?

1229


What is quick sort in java?

1070


What is runtime polymorphism or dynamic method dispatch?

1051


What does bitwise or mean?

1139


Is linkedlist thread safe in java?

1034


Is java ee a framework?

1028


Explain jvm, jre, and jdk?

1051


why not override thread to make a runnable? : Java thread

1059


What's the purpose of static methods and static variables?

1156


What is a dynamic array in java?

1247