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 do generics work?
How to retrieve data from database in java using arraylist?
What is the unit of plancks constant?
What java is used for?
Enlist few advantages of inheritance?
Write a method that will remove given character from the string?
Can I import same package/class twice?
Why can't you declare a class as protected?
Is it necessary that each try block must be followed by a catch block?
What is tree node in java?
Why is flag used in java?
define the terminology association.
Is node a data type in java?
What are the actions that can occur when a thread enters blocked state?
Does substring create a new object?