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 implicit object in java?
What is string buffer?
what is singleton class in java?
What does the exclamation mark mean in java?
What is meant by main method?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is the static field modifier?
What is the difference between yielding and sleeping?
What does serializing data mean?
How do you define a singleton class?
What is private static in java?
Which non-unicode letter characters may be used as the first character of an identifier?
What is the flag in java?
Why for each loop is used?
What is preparedstatement in java?