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
Explain about static nested classes in java?
What is get () in java?
Which is better ascii or unicode?
What are annotations in java?
What is difference between overloading and overriding in java?
What do you mean by aggregation?
Explain about fail safe iterators in java?
What is data type in java?
What is the difference between scrollbar and scrollpane?
What is an immutable class?
What is the biggest integer?
Can you use abstract and final both with a method?
What is serialversionuid?
What is class forname?
What are different type of exceptions in java?