Interface A {
String test();
}

Interface B {
int test();
}

Create a class AB which must implements both A & B
interfaces.

Answer Posted / dhoom

interface A
{
String test();
}
interface B
{
int test();
}
interface AB implements A extends B
{
....
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some important characteristics on jre

788


What data type is string java?

726


Does java linked list allow duplicates?

719


What is multi level inheritance in java?

742


What is the difference between procedural and object-oriented programs?

711


Can we define static methods inside interface?

711


How can constructor chaining be done by using the super keyword?

817


When super keyword is used?

791


What are basic keywords?

772


Is there a sort function in java?

746


What is hash in java?

689


Why do we need wrapper classes?

781


What is the difference between the direct buffer and non-direct buffer in java?

762


Is hashmap thread safe?

753


Can we have static methods in an interface?

770