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

What is main string [] args?

997


What is object class in java?

932


You're given a Boolean 2D matrix, can you find the number of islands?

1116


What is the maximum size of arraylist in java?

1014


What is the difference between preparedstatement and statement in java?

1177


What does main method?

986


What is thread safe singleton?

956


State some situations where exceptions may arise in java?

1065


What is the difference between Grid and Gridbaglayout?

1255


Does string isempty check for null?

1036


What is java util hashmap?

992


Is binary a low level language?

925


Describe method overriding

1134


What is a treeset class?

1019


What are the difference between string, string builder, and string buffer in java?

1131