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

Describe 2 different ways to concatenate two strings.

1207


Can we store variables in local blocks?

1354


What does 3 dots mean in java?

996


What is numeric data type?

997


What is array and arraylist in java?

1119


Which package is imported by default?

1088


What do you mean by platform independence of Java?

1158


What is an infinite loop?

1265


Is set ordered?

981


What is instance means in java?

1057


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1246


What do you know about java?

957


When should I use a singleton?

1052


Why do we use bufferedreader?

1015


What is jagged array in java?

1095