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

Explain the difference between abstraction and encapsulation.

535


How many types of java are there?

555


Explain about features of local inner class?

599


What is the advantage of functional interface in java 8?

519


Can the interface be final?

574






Why use string handling in Java?

579


Define how objects are stored in java?

560


Which one will take more memory: an int or integer?

767


What is the difference between access specifiers and access modifiers in java? 16

534


Can you write a java class that could be used both as an applet as well as an application?

515


If a method is declared as protected, where may the method be accessed in java programming?

496


Is heap stored in ram?

522


Can we make main() thread as daemon?

574


What are the advantages of packages in java?

569


What is singletonlist in java?

503