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 / k.mahesh

Java does not support multiple inheritance but this problem is solved through interfaces. Interfaces helps Java to achieve several advantages of multiple inheritances without the associated problems\. We can prevent some variables and methods from being accessed by a subclass by declaring them as private.
Always interface gives a template from which we can develop new classes. Interface gives the design part and implementation of the design we must do. Interface tells what to do, but not now how to do. Java supports multiple inheritance through interfaces so that we can take features of tow interfaces into our implementation file.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What loop means?

1000


Can we convert stringbuilder to string in java?

1027


What do you mean by a JVM?

1344


Explain creating threads by extending thread class ?

1088


How many wrapper classes are there in java?

1061


How can you read content from file in java?

1051


What are the differences between wait() and sleep()?

1048


How do you override a variable in java?

1231


What environment variables do I need to set on my machine in order to be able to run java programs?

1056


Are variables stored in ram?

1062


How to sort array of 0 and 1 in java?

995


Can constructor be synchronized?

984


Is 0 a real number?

1099


What is entry set in java?

1228


Does constructor return any value?

1081