Why does java doesnot support multiple inheritance?
Answer Posted / balu
multiple inheritance is not available in java for the following reasons
1.it leads to confusion for a java program
2.the programmer can achieve multiple inheritance by using interfaces
3.and also we can achieve it by repeatdly using single inheritance.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
what is ststic with example
How many types of assembly languages are there?
How do you compare two strings lexicographically?
Where is stringbuffer stored?
How do you find the maximum number from an array without comparing and sorting?
What is t type java?
What is an argument java?
Is the milky way in a void?
Where and how can you use a private constructor?
What are the special characters?
What is yield () in java?
How many types of interfaces are there?
How many types of variables are there?
Why object class is super class for every class in java?