why java does not support multiple inheritance
Answer Posted / kishore
Java absolutly support multiple inheritence in terms of
Interface.We can extend one class only to avoid ambiguity
problem.In interface we have to define the functions.So we
don't get any ambiguity.In c++ it is big problem with
multiple inheritence but in JAVA this thing is improved by
introducing Interfaces
Is This Answer Correct ? | 304 Yes | 88 No |
Post New Answer View All Answers
Why is String immutable?
Can list contain null in java?
Which collection does not allow duplicates in java?
When do you call copy constructor?
what is abstract class in Java?
How do you get the length of a string in java?
how we can make a write-only class in java?
Can you explain the private protected field modifier?
What is meant by collection in java?
What are the different types of collections in java?
What happens when you add a double value to a string?
Why scanner is used in java?
What is void data type?
Explain how hashmap works?
Explain the difference between arraylist and linkedlist in java?