Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / akhil agarwal

Interface A
{
string test();
}
Interface B
{
int test();
}
class AB implements A,B
{
string test();
int test();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

v-model life cycle

1841


Can we pass a primitive type by reference in java? How

726


What is the final access modifier in java?

837


What is the default execution method in java?

879


What is meant by collection in java?

806


What happens when I use / and % with a negative numerator?

796


Define jre i.e. Java runtime environment?

797


What does snprintf return?

795


What is data and its types?

786


What does method mean?

764


What is the java virtual machine?

868


How do you represent a space in regex java?

753


What does opcode mean?

790


What is the size of string?

789


What is :: operator in java 8?

811