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
What is an interface in java?
Explain the importance of finally block in java?
What are the differences between this and super keyword?
What is string pooling concept?
Explain runtime exceptions?
Explain the protected field modifier?
What is locale?
What is jar?
Can you instantiate the math class in Java?
What are the files generated after using IDL to java compiler?
Can we return null in java?
What is the benefit of using enum to declare a constant?
What is unicode in java?
How transient variable is different from volatile variable?
Is there any difference between synchronized methods and synchronized statements?