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

What is the purpose of default constructor?

584


What are latest features introduced with java 8?

595


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1807


What is java life cycle?

541


How do you create an array in java?

536






What is token in java?

535


What is string :: npos?

583


What is the primary benefit of encapsulation?

562


What is difference between identifier and variable?

477


What is an example of declaration?

530


Why can't we make a class private in java?

539


What does I ++ mean?

613


Is 0 an irrational number?

609


What is final keyword?

648


What is jvm? Why is java called the platform independent programming language?

549