why is multiple inheritance not allowed in java?
Answer Posted / haridini
Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.
Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
How do you identify if jvm is 32-bit or 64-bit from java program?
What is exception in java?
What is array length?
What's the purpose of static methods and static variables?
What is difference between null and void?
What will be the output of round(3.7) and ceil(3.7)?
Is break statement can be used as labels in java?
What is the purpose of stub and skeleton?
What is scope of a variable?
What is tree node in java?
How much is a java license?
What is locale?
What is a double vs float?
What is isa relationship?
How do you override a method?