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

Are registers volatile?

537


What is the use of toarray () in java?

545


What is a java object and java application?

578


What is the difference between replace and replace all?

479


Describe the Big-O Notation.

619






Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

624


What is the collections api in java programming?

557


What does file separator do in java?

541


Difference between static binding and dynamic binding?

571


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

709


What isan abstract class and when do you use it?

848


What are the java ide’s?

577


How can you read an integer value from the keyword when the application is runtime in java? example?

627


Why static functions are used?

573


What differences exist between iterator and listiterator?

575