why java does not support multiple inheritance
Answer Posted / vishwanath
java doesn't support multiple inheritance directly because it leads to overiding of methods when both extended class have a same method name. this will leads to ambiguity in executing. this problem can be solved using interface which works similar to the multiple inheritance but the methods are defined in the subsequent classes so it does not create any ambiguity.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is boolean false?
What is queue in java?
Is java a compiler?
What is bufferedwriter?
Explain what do you mean by functional overloading in java?
What is the use of using enum to declare a constant?
Is null an object in java?
What is a boolean expression in java?
What is an example of a conditional statement?
What is the length of a string?
What is an iterator java?
What is an array length?
What is a byte string?
What is a function in programming?
Is java a super set of javascript?