There are three interfaces A,B & C. A extends B, B extends C,
and C extends A.Is it multiple Inheritance? please anybody
help me.....

Answers were Sorted based on User's Feedback



There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple I..

Answer / sudheer

this is called cyclic inheritance....
if u compile A.java then only you will get an error message saying that "cyclic inheritance involving on A"...
so it is not possible...

Is This Answer Correct ?    13 Yes 1 No

There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple I..

Answer / sadikhasan palsaniya

There is Cyclic inheritance which is not possible in java.

interface A{}
interface B extends A{}
interface C extends A{}
interface D extends B,C{}

It's call Multiple inheritance.

Is This Answer Correct ?    3 Yes 0 No

There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple I..

Answer / madhu

in java there is no multiple inheritance.so it is called as multi level inheritance.it comes under that.so i hope it is not multiple inheritance.there is only one inheritance single level inheritance.

Is This Answer Correct ?    2 Yes 2 No

There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple I..

Answer / pratima

This is not multiple inheritance ,this is multilevel inheritance.
But if you have three interface suppose A,B,C
then you can implement like wise and achieve multiple inheritance.
A extends B,C

Is This Answer Correct ?    0 Yes 0 No

There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple I..

Answer / mahesh

No it is Not Multiple inheritance .It is Hirearchy inheritance

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Core Java Interview Questions

What is unicode with example?

0 Answers  


What is keyword auto for?

0 Answers  


Are arrays immutable in java?

0 Answers  


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

0 Answers  


Do I need java on my pc?

0 Answers  






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.

8 Answers   CFG,


What is int short for?

0 Answers  


What is an off by one error in java?

0 Answers  


What are some examples of variable costs?

0 Answers  


How do you sort a list in java?

0 Answers  


What is the purpose of checked and unchecked exceptions in JAVA?

0 Answers   Amdocs,


what is ABSTRACTION and what are using in real time project?

1 Answers   iGate,


Categories