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

Can we declare a constructor as final?

878


Is char * a string?

728


What is split return?

667


How many types of java are there?

735


Can we overload the methods by making them static?

724


What is visibility mode?

714


What are JVM.JRE, J2EE, JNI?

862


Why is singleton not thread safe?

819


Can we print null in java?

765


What is null in java?

691


What is a flag value?

697


What is a control variable example?

726


what is static import in java? Explain

762


What is data type example?

736


Define packages in java?

762