Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / dhoom

interface A
{
String test();
}
interface B
{
int test();
}
interface AB implements A extends B
{
....
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is namespace same as package in java?

538


why Java does not support multiple inheritances?

700


What is %d in printf?

524


How to split a string in java?

622


Why synchronization is important?

584






What is collections framework?

571


Can we write a class without main method in java?

482


What is a null point?

557


Why string is a class?

545


What is numeric data type?

525


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1601


What two classes are used to read data only?

636


What are java packages?

582


Why map is used in java?

573


What is ternary operator in java?

591