Is multiple inheritance used in Java ?

Is multiple inheritance used in Java ?

Java does not support multiple inheritance. But we can achievethis using interface.

 A class can\'t extends more than one classbut an interface can extends more than oneinterface.Example:interface I1{//some abstract methods here}interface I2{//some abstract methods here}interface I3 extends I1,I2{//some abstract methods here}

Date:2012-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher