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 set ordered in java?
What is the significance of continue jump statement? Explain with an example.
What are predicates in java 8?
What is a instance variable in java?
What do you mean by boolean?
What is an iterator java?
What is the use of arraylist in java?
Explain the difference between static and dynamic binding in java?
How do you format in java?
Is overriding possible in java?
How does a for loop work?
What is boolean law?
Differences between C and Java?
How many boolean functions are there?
java program with complete 4 oops concepts implemented example