Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / niltarlekar
public class AB implements A,B
{
public static void main(String args[])
{
}
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is considered an anti pattern?
Can we create a class inside a class in java?
Is oracle java 11 free?
What is size () in java?
Difference between a class and an object?
Write a program to find maximum and minimum number in array?
What is default switch case? Give example.
Why are arrays useful in java?
What is the file type?
What are class members by default?
What is a memory leak in java?
How many decimal digits is 64 bit?
which class is the wait() method defined in? : Java thread
How to create packages in java?
Can you override private or static method in java?