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
Difference between predicate, supplier and consumer ?
Difference between this() and super() in java ?
What is java string pool?
When will you define a method as static?
What are the rules for variable declaration?
What is bufferedreader in java?
Why do we need data serialization?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the largest long allowed by java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
What is the purpose of encapsulation?
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.
Should a main method be compulsorily declared in all java classes?
What is the purpose of the enableevents() method in java programming?
Why string is a class?