How multipleInheritance is possible in java?

Answer Posted / uthrakumar-wipro technologies

multiple inheritance is not possible in java but we can
apply the multiple inheritance concept using interfaces in
java but it doesn't meant that java will support multiple
inheritance rather we can implement the idea of multiple
inheritance as follows......


eg:

<class name> implements <class1>,<class2>,...
{
}



but the interface technique will not gives the
exact definition of multiple inheritance.....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is heap memory?

844


What is mutable object and immutable object?

860


What are the advantages of passing this into a method instead of the current class object itself?

1392


What is a line break example?

747


What is string data?

747


Is an empty arraylist null?

790


Can you call a method in a method?

748


Is java util list serializable?

703


Why java doesn’t support multiple inheritances?

770


What is a platform?

720


What does || mean in vectors?

687


What is final?

793


If you are given the name of the function at run time how will you invoke the function?

882


Which number is denoted by leading zero in java?

1010


Is string thread safe in java?

806