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 java is considered as platform independent?
What are static blocks and static initalizers in java ?
Does constructor return any value?
What is the buffer limit?
What is an example of a keyword?
What is stream api in java8?
What is meant by javabeans?
What is method overloading and method overriding?
What is finalize()?
Is class is a data type?
Is string passed by reference in java?
What is keyset in java?
How a string is stored in memory?
What is a dynamic array in java?
What are constants and how to create constants in java?