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 difference between variable declaration and definition?
Is map ordered in java?
how are methods defined?
What is the use of volatile in java?
Name few java.lang classes introduced with java 8 ?
what are three ways in which a thread can enter the waiting state? : Java thread
Give me an example of array and linked list? Where they can be used?
Are arrays dynamic in java?
How can I become a good programmer?
What will happen to the exception object after exception handling?
What is the difference between array and array list in java?
State the merge-sort principle and its time complexity.
Why do we need hashmap in java?
What is a flag value?
What are the types of collections in java?