why java does not support multiple inheritance
Answer Posted / shiva
multiple inheritance means a sub class which is derived from
two base classes.
assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.
now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.
| Is This Answer Correct ? | 22 Yes | 6 No |
Post New Answer View All Answers
Why unicode is important?
State the significance of public, private, protected class?
What is use of functional interface in java 8? Explain
What type of variable is error flag?
What are the major drawbacks of external iteration?
What is finalize()?
Why is multiple inheritance not supported in java?
How can we run a java program without making any object?
What is the difference between synchronized and synchronized block?
What are the six ways to use this keyword?
What is the use of singleton?
What is a superclass?
Can I uninstall java?
What is illegal identifier in java?
Explain the term virtual machine?