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 do you mean by a JVM?
What are selection structures?
What is the java idl system?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What do you mean by an interface in java?
Explain the concept of proper inheritance?
Why java is object oriented?
Explain the selection sort algorithm?
What is busy spin, and why should you use it?
Is break statement can be used as labels in java?
What is difference between overloading and overriding in java?
What is a boolean output?
What is javac_g?
What is the static import?
What is the difference between the paint() and repaint() methods?