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
Why to use nested classes in java?
What are the different types of garbage collectors in java?
What's the purpose of static methods and static variables?
Can we execute java program without main method?
How do you override a variable in java?
Define a java class.
How will you reverse a singly-link list?
Can you pass functions in java?
What are keywords in programming?
What is final method in java?
What is map java?
Is null a string in java?
Can a constructor call the constructor of parent class?
What data structures are used to perform recursion?
What is a flag value?