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


Please Help Members By Posting Answers For Below Questions

What is considered an anti pattern?

537


Can we create a class inside a class in java?

554


Is oracle java 11 free?

535


What is size () in java?

556


Difference between a class and an object?

586






Write a program to find maximum and minimum number in array?

561


What is default switch case? Give example.

578


Why are arrays useful in java?

546


What is the file type?

567


What are class members by default?

667


What is a memory leak in java?

553


How many decimal digits is 64 bit?

541


which class is the wait() method defined in? : Java thread

527


How to create packages in java?

537


Can you override private or static method in java?

560