Why does java doesnot support multiple inheritance?
Answer Posted / msraju
Every class in java must have only one root class (i.e
Object class) directly or indirectly.
If Class C extends Class A and Class B(this approach is not
supported in java ),here Class A will one root Object
class,similarly Class B will have Another root class.i.e
Here Class C is having two root classes....For this reason
java not supporting Multiple inheritance with respective
Objacts.
Every objects need some common functionalities which are
available in Object class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the features of java?
Why java is considered dynamic?
Which package has light weight components in java programming?
How can you make a class serializable in java?
Can constructor be protected in java?
what is meant by encapsulation?
Which sorting is used in arrays sort in java?
What are different data types?
Do you need to import math in java?
How do you sort arrays in java?
What is parameters example?
What is array length?
What are the two types of exceptions in java? Which are the differences between them?
What is the diffrence between inner class and nested class?
What is use of valueof () in java?