all are saying java doesn't support multiple inheritance but
by default Object class is super class for all the user
defined classes and we can extend atmost one class so each
class can extend more than one class so java supports
multiple inheritance?i am confused with this,pls any one
explain me.

Answer Posted / kartik naidhruva

Its foolish to say a class extends more than one class...
Who told u that!!!!
inorder to implement multiple inheritance in java we use
INTERFACES....
with the help of interfaces we can Partially implement
Multiple inheritance

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is used for java programming?

791


What is package protected in java?

753


What is purpose of keyword void?

825


Why java applets are more useful for intranets as compared to internet?

828


what is mutual exclusion? : Java thread

796


What is the use of conditional statement?

769


What is assembly used for?

795


What is the difference between a local variable and an instance variable?

785


What is thread life cycle in java?

834


What is mean by encoding?

834


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

968


What is final keyword in java? Give an example.

795


I don’t want my class to be inherited by any other class. What should I do?

809


What is the purpose of a default constructor?

847


How large is a boolean?

792