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 is e in java?
What is singleton math?
What is OOP's Terms with explanation?
What is a void method java?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is double in java?
How we can make copy of a java object?
Explain about fail safe iterators in java?
Is void a data type in java?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
Why string is immutable with example?
Does java vector allow null?
Is .net better than java?
What are three ways in which a thread can enter the waiting state in java programming?
What is the difference between super class & sub class?