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 Enum in Java?

686


Difference between Linked list and Queue?

611


What is static data type in java?

544


In java, how we can disallow serialization of variables?

555


How can the checkbox class be used to create a radio button?

511






What is a JAR file?

596


How many bytes is string in java?

611


What is the difference between compare and compareto in java?

491


What is sortedmap interface?

556


Can a main method be declared final?

588


How do you check if a number is a perfect square?

514


What is the this keyword?

558


What is the base class for error and exception?

555


Explain the difference between collection api and stream api in java8?

511


What is local declaration?

490