Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / prakash

CLASS AB:A,B
{
String test()
{
}
int test()
{
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean strategy?

630


What are different types of control structures?

495


When do we use synchronized blocks and advantages of using synchronized blocks?

669


Does anyone still use java?

588


How do you implement singleton class?

520






Explain inner classes ?

655


What is finalize() function in java?

565


How can we find the sum of two linked lists using stack in java?

574


What is the final class modifier?

567


What is sorting algorithm in java?

529


When will you define a method as static in Java?

579


What two classes are used to read data only?

645


What do negative exponents mean?

552


What was java originally called?

518


Is java a compiler?

571