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


Please Help Members By Posting Answers For Below Questions

Explain abstract class in java?

535


How can we avoid including a header more than once?

586


What is the significance of continue jump statement? Explain with an example.

711


What is the purpose of garbage collection in java, and when is it used?

535


What is a newline character in java?

533






How to disable caching on back button of the browser?

504


Which is best ide for java?

503


Differentiate between static and non-static methods in java.

537


Tell me how many ways are there to initialise an integer with a constant.

614


What is the driver class?

546


Is .net better than java?

531


What is the difference between a local variable and an instance variable?

528


What is a programming object?

530


Which is easier .net or java?

612


What is extension method in java?

539