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
Write a program in java to establish a connection between client and server?
Why do we use string?
What is a modifier?
What is tcp and udp?
Which is the class in java?
Can sleep() method causes another thread to sleep?
What is string made of?
Can Exception handling we can handle multiple catch blocks?
What is a generic type?
What is the common usage of serialization? What exceptions occur during serialization?
What is the use of private static?
Define reflection.
What is instance means in java?
How do you add an element to an arraylist in java?
What is a short in java?