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

Is multiple inheritance allowed in Java? Why ?

Answer Posted / bhasker tiwari

All the answer given above are True .
but i would like to add few more.
Reasons are follows:
1.As java creates .class for each Java file.and As all java
files has there own variable and methods so incase of
Multiple inheritence all will mess up , so to avoid this
situation Java do not allow Multiple Inheritence.
2. the above discussed Diamond problem is also a Reason.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where pragma is used?

1004


Explain the purpose of garbage collection in Java?

987


Tell me about your ability to work under pressure

2157


What is string array?

1026


What is the difference between double and float variables in java?

1100


What is formatted output in java?

921


What are basic data types?

1052


What is the difference between the paint() and repaint() methods?

1027


What is difference between overloading and overriding in java?

985


What are the 7 types of characters?

1036


Are arrays immutable in java?

1032


How do you sort in ascending order in java?

830


Is map ordered in java?

898


What is object class in java?

887


What is a functional interface?

987