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
Is java hashset ordered?
What is the benefit of inner / nested classes ?
What’s the difference between callable and runnable?
What does || || mean in math?
What is the meaning of 3 dots in java?
Why we do exception handling in java and how many types of exceptions are there?
Explain what are final variable in java?
What restrictions are placed on method overloading in java programming?
What are the types of strings?
Explain throw keyword in java?
How many arguments can a method have java?
Why map is used in java?
Is it possible to compare various strings with the help of == operator?
How do you detect memory leaks?
Explain method overloading?