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 is multiple inheritance not allowed in java?

Answer Posted / shahnawaz akhtar

bcoz of memory loss problem sun has not provide multiple
inheritance concept multiple inheritance is not achived in
java through class but we can achieve it by interface bcoz
interface only allow final static variable and abstract
method ,due to static variable it allocates memory only one
time so less memory is loss thats why sun has not provide
multiple inheritance concept through class

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is implicit object in java?

1126


What is string buffer?

993


what is singleton class in java?

1113


What does the exclamation mark mean in java?

1319


What is meant by main method?

1116


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

2390


What is the static field modifier?

1172


What is the difference between yielding and sleeping?

1180


What does serializing data mean?

1003


How do you define a singleton class?

1153


What is private static in java?

1091


Which non-unicode letter characters may be used as the first character of an identifier?

1052


What is the flag in java?

1110


Why for each loop is used?

1064


What is preparedstatement in java?

1103