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
How to store image in arraylist in java?
What is a locale?
Is java a utf 8 string?
Why declare Main() inside the class in java ?
Is null function in java?
Can a final variable be initialized in constructor?
What is the difference between array list and vector in java?
What is void keyword?
What is a variable declaration?
Explain naming conventions for packages?
Give reasons supporting that string is immutable.
What is join () in java?
Tell me about your ability to work under pressure
Explain about anonymous inner classes in java?
What is the collections api?