Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / sandeep vudutala
interface A
{
String test();
}
interface B extends interface A
{
int test();
}
public Class AB implements B
{
public String test()
{
}
public int test()
{
}
}
| Is This Answer Correct ? | 5 Yes | 23 No |
Post New Answer View All Answers
What is the difference between menuitem and checkboxmenu item?
Is java code slower than native code?
What is the difference between declaration and definition in java?
What is default switch case? Give example.
What is OOP Language?
Which package is imported by default?
What do you mean Abstraction in java?
What is method overloading in JAVA? Why is it not present in C ?
What is string and example?
How will you load a specific locale?
What is data member in java?
what are synchronized methods and synchronized statements? : Java thread
What is the difference between a static and a non-static inner class in java programming?
Can a set contain duplicates?
Does variable declaration allocate memory?