why is multiple inheritance not allowed in java?
Answer Posted / sikinder
Whenever one Sub Class Extends more than one classes, at
the time of creating that class object, JVM gets confused
to call the parent class constructor as well as methods.
To avoid this ambuiguity, java doesn't support multiple
inheritance
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Why is sizeof not a function?
What are reference variables in java?
Why 1 is not a prime number?
What is use of static method?
how to create constants in java?
Explain different ways of creating a thread. Which one would you prefer and why?
What's the purpose of using break in each case of switch statement?
Write a factorial program using recursion in java?
What are the restrictions imposed by a Security Manager on Applets?.
Is java an open source?
What is the purpose of the System class?
Is string a class?
Can keyword be used as identifier?
Which is bigger float or double java?
Is boolean a data type in java?