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 are the differences between path and classpath variables?

513


What is the equal sign?

572


What restrictions are placed on method overloading in java programming?

580


In how many ways we can create threads in java?

642


What are loops in java?

557






Can an interface have a class?

573


What is the difference between length and size in java?

510


Why java strings are immutable in nature?

604


What is difference between == and === in js?

559


What is method overloading with type promotion?

588


What is array class in java?

602


What is byte value?

563


What is Java Package and which package is imported by default?

608


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

600


What is a flag variable?

569