What is multiple inheritance & can we implement it in java?

Answer Posted / lavanya

Java Does Support Multiple inheritance through the usage of
intrface concept. multiple inheritence is one class
acquiring the features of more than one class.

Java can extend one class but can implement more than one
interface.

intreface is a class whose methods are declared but
functionality not defined. The implementing class has to
define that functionality.

Through the use of interfaces we can avoid the confusion of
which class to use in case two extended classes have same method

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by bytecode?

581


What is string data type?

561


What is Applet Stub Interface ?

1974


What is array list in java?

595


How to disable caching on back button of the browser?

533






Why are getters and setters used?

580


How many types of methods are there?

554


What is listnode in java?

542


What's the difference between an abstract class and interface in java?

567


What are basic data types?

565


What is a variable in java?

544


Can you sort a string in java?

498


Difference between string, string builder, and string buffer?

538


Can we create our own wrapper class in java?

555


Difference between final and effectively final ? Why is effectively final even required ?

565