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 does %d do in java?
I want to persist data of objects for later use. What is the best approach to do so?
What is the benefit of singleton pattern?
What is the basic of java?
How to handle a web browser resize operation?
What is a java list?
What is stack explain?
Explain methods specific to list interface?
What is a byte array?
What is the purpose of using java.lang.class class?
How do you sort in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Why char array is preferred over string for storing password?
What is Applet Stub Interface ?
What is integer parseint?