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

Can we create our own daemon thread?

970


What is type safety in java?

942


How many bits is a char?

973


What is autoboxing in java?

1057


What is scanner in java?

943


Do we need to manually write Copy Constructor?

1027


What are different types of classloaders?

1015


Define inheritance with reference to java.

1076


Write a program to print the pattern given below

926


What isan abstract class and when do you use it?

1587


What’s the difference between unit, integration and functional testing?

1098


Why is java logo a cup of coffee?

1157


what are different ways in which a thread can enter the waiting state? : Java thread

960


Can we create object of static class?

1015


Define jit compiler?

1127