Is multiple inheritance allowed in Java? Why ?

Answer Posted / suresh aelidhe

Can some one explain about this case.

-> A is a super class and B extends from A.
-> java.lang.Object is super class for all classes.

now in this case B extends from A and B extend from java.lang.Object(because is default super class) then it is multiple inheritence right?

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entry set in java?

539


Why do we use variables?

517


What is the use of keywords in java?

555


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.

1590


What are white spaces in java?

535






Do I need java on my pc?

514


Is java ee a framework?

525


What is an object in java?

561


According to java operator precedence, which operator is considered to be with highest precedence?

606


What is an argument in java?

513


What is method overloading with type promotion?

581


What is covariant return type?

644


Is array a class in java?

507


Explain garbage collection in java?

549


How do you create a null object?

516