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
Can we have more than one package statement in source file ?
Can string be considered as a keyword?
Can inner class have constructor?
Why is serialization required?
What two classes are used to read data only?
When should you use arraylist and when should you use linkedlist?
Is c better than java?
What is implicit object in java?
What is Mutex (Mutual Exclusion Object) ?
Explain wrapper classes in java?
What is method in java with example?
What is the purpose of the enableevents() method in java programming?
What are the different types of multitasking?
What is the benefit of using enum to declare a constant?
Implementations of set interface?