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
Is java good for beginners?
Name some classes present in java.util.regex package.
What are the important features of Java 8 release?
What is the diffrence between inner class and nested class?
How many wrapper classes are there in java?
What is java abstraction with example?
Write a method that will remove given character from the string?
What is java Applet?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is gc()?
What is entry in java?
Is java util list serializable?
What is internal iteration in java se 8?
What is return code?
Can we sort array in java?