Why multiple inheritance is removed in java?

Answers were Sorted based on User's Feedback



Why multiple inheritance is removed in java?..

Answer / jasmeet singh

coz multiple inheritence can lead to ambiguity in the child
class...
say , for example if two different class use same name for
any variable or constant and those classes are inherited by
any child class, then those variables or constants with same
name will create ambiguity in the child class

Is This Answer Correct ?    12 Yes 1 No

Why multiple inheritance is removed in java?..

Answer / ranjeet

just to omit the ambiguty in inheritence.

Is This Answer Correct ?    3 Yes 1 No

Why multiple inheritance is removed in java?..

Answer / vijayan.s

It's not completely removed. only one class can be extended
if more than one class should be inherited by using
implement.

Is This Answer Correct ?    0 Yes 0 No

Why multiple inheritance is removed in java?..

Answer / vijay.r

becoz we cant able to inherit more than one base class java.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Programming Languages AllOther Interview Questions

Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.

0 Answers   Amazon,


what is the BAM? where we can use it in BizTalk server?

0 Answers  


can we allocate memory for interface? if no then why?

0 Answers  


Number of null pointers in any binary tree

5 Answers   Infosys,


differences between qtp10.0 and 11.0 ?

0 Answers  






If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com

0 Answers  


How to swap values between two variables without using a third variable?

24 Answers   HCL, TCS,


what is radio button? Plz show code this! how will select radio buttons to go next window Forms? Supose o radio button1 o radio button2 o radio button3 o radio button4 how will coding this? Plz explain this!

0 Answers  


What r the attributes using in Win Runner?

0 Answers   Tavant Technologies,


hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP

1 Answers   IBM,


any drawback are there in mantis?

0 Answers  


hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com

0 Answers  


Categories