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 the use of callablestatement?

1010


What is the default value of local and global variables?

1086


What is the purpose of using break in each case of switch statement?

1020


What are different data structures in java?

1033


What is difference between word and integer?

1070


What is called module?

966


Can we have return statement in finally clause? What will happen?

954


What is anagram in java?

922


What is the common usage of serialization?

1131


What is an escape character in java?

1026


What is difference between c++ and java ?

1115


What are inner classes or non static nested classes in java?

1169


Can arraylist contain null values?

1003


Why can't we override private static methods?

963


How many bytes is a string in java?

983