Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how an we achive multiple inhetitance in java using
interface..??

Answer Posted / sindhu

In Java Multiple Inheritance can be achieved through use of Interfaces by implementing more than one interfaces in a class.

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

2055


What is the difference between superclass and subclass?

1178


Explain the reason behind ending a program with a system.exit(0)?

1090


How do you add spaces in java?

1012


What do you mean by JVM?

1082


Which class is the superclass for every class in java programming?

1000


How do you delete a list in java?

961


Does java list allow null?

997


Explain list interface?

967


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1033


Tell me a few examples of final classes defined in Java API?

1099


What is a parameter in java?

993


What is array length in java?

967


Explain the difference between an Interface and an Abstract class?

1176


What is the this keyword?

1033