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
How do you print array in java?
What is the final variable?
What is the current version of java?
How do you clear a list in java?
What are the super most classes for all the streams?
How to make a class or a bean serializable?
What are constants and how to create constants in java?
What are the methods of object class ?
What is the length of a string?
What is use of map in java?
What are the drawbacks of reflection?
What is jit compiler ?
What do you understand by looping in java? Explain the different types of loops.
Is space a character in java?
How do you convert boolean to boolean?