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 are sets in java?
When is the arraystoreexception thrown?
What is pangram in java?
What is an immutable class? How to create an immutable class?
What is http client in java?
What is the difference between jdk, jre, and jvm?
What is functional interface in java?
What is meant by overloading?
When should I use a singleton?
What is difference between core java and java ee?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What are "class access modifiers" in Java?
Can static methods be inherited?
How can we make string upper case or lower case?
What are bind parameters?