why java does not support multiple inheritance
Answer Posted / piyush patel
java is extended from C++ language.
in c++ we found Multiple inheritance make complexity or
confusion to called method.
example: suppose class A extends class B and class C
class B have method area(int i);
class C have method area(int i);
now if Class A call area(int i) then whose method will be
considered
contact me if any query about java
mob:9904449370
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is null mean in java?
Is int a class in java?
What is jrmp?
What do you mean by default constructor in java?
What is arrays sort in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Where is core java used?
Does printwriter create a file?
Can we restart a dead thread in java?
how we can create packages in java?
How do you do a line break in java?
Is there a jre for java 11?
Explain about instanceof operator in java?
Java is pass by value or pass by reference? Explain
Can set contain duplicates?