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 is stringwriter?
If you do not want your class to be inherited by any other class. What would you do?
What are the advantages of functions?
Why is core java important?
What is boolean law?
What is bufferedreader in java?
What is jrmp?
Difference between keyword and identifier.
What is the collections api?
Is array passed by reference in java?
Explain what do you mean by functional overloading in java?
What are keywords and reserved words in java?
Differentiate storage classes on the basis of their scope?
What does next mean in java?
Can a static member function access member variable of an object?