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
What causes memory leak in java?
List the three steps for creating an object for a class?
What is nullpointerexception?
How many return statement are allowed in a function?
What are the important features of Java 9 release?
What are the library functions in java?
What is the purpose of a volatile variable?
What is difference between float and double?
How is string immutable in java?
Can inner class final?
Write java program to reverse string without using api?
Why are functions called methods in java?
How does hashmap work in java ?
What is the use of 'super' keyword inside a constructor?
What is bytecode in java ?