why is multiple inheritance not allowed in java?
Answer Posted / shahnawaz akhtar
bcoz of memory loss problem sun has not provide multiple
inheritance concept multiple inheritance is not achived in
java through class but we can achieve it by interface bcoz
interface only allow final static variable and abstract
method ,due to static variable it allocates memory only one
time so less memory is loss thats why sun has not provide
multiple inheritance concept through class
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Explain abstract class in java?
How can we avoid including a header more than once?
What is the significance of continue jump statement? Explain with an example.
What is the purpose of garbage collection in java, and when is it used?
What is a newline character in java?
How to disable caching on back button of the browser?
Which is best ide for java?
Differentiate between static and non-static methods in java.
Tell me how many ways are there to initialise an integer with a constant.
What is the driver class?
Is .net better than java?
What is the difference between a local variable and an instance variable?
What is a programming object?
Which is easier .net or java?
What is extension method in java?