Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / niltarlekar
public class AB implements A,B
{
public static void main(String args[])
{
}
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How many threads can java run?
how can you catch multiple exceptions in java?
What is binary search in java?
What is the difference between a method and a function in alice?
Can an interface extend a class?
Is arraylist ordered in java?
What is a flag and how does it work?
What are the restrictions imposed on method overriding?
What is the difference between jdk and jre?
Does sprintf allocate memory?
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.
What's the difference between int and integer in java?
What is a war file?
What is a concrete classes? Is Java object class is concrete class?
How do you find the maximum number from an array without comparing and sorting?