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


Please Help Members By Posting Answers For Below Questions

Why is String immutable?

850


Can list contain null in java?

892


Which collection does not allow duplicates in java?

730


When do you call copy constructor?

758


what is abstract class in Java?

907


How do you get the length of a string in java?

757


how we can make a write-only class in java?

797


Can you explain the private protected field modifier?

804


What is meant by collection in java?

804


What are the different types of collections in java?

753


What happens when you add a double value to a string?

780


Why scanner is used in java?

800


What is void data type?

769


Explain how hashmap works?

824


Explain the difference between arraylist and linkedlist in java?

726