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
Are registers volatile?
What is the use of toarray () in java?
What is a java object and java application?
What is the difference between replace and replace all?
Describe the Big-O Notation.
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is the collections api in java programming?
What does file separator do in java?
Difference between static binding and dynamic binding?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What isan abstract class and when do you use it?
What are the java ide’s?
How can you read an integer value from the keyword when the application is runtime in java? example?
Why static functions are used?
What differences exist between iterator and listiterator?