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
What is the list interface in java programming?
Is set ordered in java?
What is the full form of jpeg?
What is a java string?
How can an object be unreferenced?
What is finalize method?
a thread is runnable, how does that work? : Java thread
What are inner classes or non static nested classes in java?
How do you make a thread in java?
What is stream api in java8?
What is the use of static class?
What is cr keyboard?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
How many bits is a word?
Why is it called a string?