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

Can we have more than one package statement in source file ?

800


Can string be considered as a keyword?

818


Can inner class have constructor?

779


Why is serialization required?

763


What two classes are used to read data only?

874


When should you use arraylist and when should you use linkedlist?

732


Is c better than java?

755


What is implicit object in java?

838


What is Mutex (Mutual Exclusion Object) ?

875


Explain wrapper classes in java?

789


What is method in java with example?

717


What is the purpose of the enableevents() method in java programming?

829


What are the different types of multitasking?

876


What is the benefit of using enum to declare a constant?

890


Implementations of set interface?

794