Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / menita
interface A
{
String test();
}
interface B
{
int test();
}
public class AB implements B
{
A obj1 = new A(){
public String test()
{
return "";
}
};
public int test()
{
return 0;
}
}
| Is This Answer Correct ? | 7 Yes | 10 No |
Post New Answer View All Answers
What are the skills required for core java?
What do you mean by ordered and sorted in collections in java?
What is string :: npos?
What are thread priorities and importance of thread priorities in java?
What are the methods available in a class?
What is the difference between == and === javascript?
explain autoboxing in java?
What are meta-annotations?
What is the static import?
How to optimize the javac output?
What is definition and declaration?
What are the properties of thread?
Tell me the Importent classes in net package?
If try block is successfully executed, Then Is Finally block executed?
What is java reflection?