Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / ganesh

yes , we cant implement like this.same as above answer.I
tested it .

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What mechanism does java use for memory management?

488


What happens if a constructor is declared private?

531


What is the purpose of static keyword in java?

513


Why do we use return statement?

535


What is the difference between path and classpath variables?

522






Why arraylist is used in java?

547


Is 0 an even number?

546


Define a package.

567


What is the difference between superclass and subclass?

541


Does set allows null in java?

506


What about member inner classes?

627


What is hashing principle in java?

548


Can you explain the meaning of aggregation and composition

567


What is collections framework?

571


When should I use singleton?

518