Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / nitin gupta

Menita you are absolutely correct!!

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the importance of import keyword in java?

527


What are the restriction imposed on a static method or a static block of code?

596


What is array and arraylist in java?

533


Can a java program have 2 main methods?

550


Can we modify the throws clause of the superclass method while overriding it in the subclass?

550






When is the finalize() called? What is the purpose of finalization?

585


Can static methods be inherited?

537


What is the meaning of flag day?

545


Is vector thread safe in java?

559


What does the “static” keyword mean?

584


Which is better stringbuilder or stringbuffer?

529


What is a for loop in java?

599


What is substring 1 in java?

591


Is arraylist an object in java?

602


Explain about the select method with an example?

591