Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / sandeep vudutala

interface A
{
String test();
}

interface B extends interface A
{
int test();
}

public Class AB implements B

{

public String test()
{

}

public int test()
{
}

}

Is This Answer Correct ?    5 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between variable declaration and definition?

515


Is map ordered in java?

537


how are methods defined?

555


What is the use of volatile in java?

602


Name few java.lang classes introduced with java 8 ?

539






what are three ways in which a thread can enter the waiting state? : Java thread

578


Give me an example of array and linked list? Where they can be used?

558


Are arrays dynamic in java?

540


How can I become a good programmer?

492


What will happen to the exception object after exception handling?

579


What is the difference between array and array list in java?

607


State the merge-sort principle and its time complexity.

574


Why do we need hashmap in java?

559


What is a flag value?

521


What are the types of collections in java?

541