Interface A {
String test();
}

Interface B {
int test();
}

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

Answer Posted / chandra

we can not do with same method name. i tried it in jdk1.5,
not able to compile.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the elements of java?

565


What are the legal operands of the instanceof operator?

566


What is javac_g?

592


Explain the importance of throwable class and its methods?

569


What is treeset in java?

547






Which of the following classes will have more memory allocated?

586


What is remote method invocation (rmi)?

615


What access modifiers can be used for methods?

562


What is == mean?

553


How to convert string to byte array and vice versa?

588


Why do we create public static method in java?

582


Explain different ways of creating a thread. Which one would you prefer and why?

578


What is Mutex (Mutual Exclusion Object) ?

629


Which package is used for pattern matching with regular expressions?

646


What is the purpose of lambda expressions?

584