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
Explain the difference between abstraction and encapsulation.
How many types of java are there?
Explain about features of local inner class?
What is the advantage of functional interface in java 8?
Can the interface be final?
Why use string handling in Java?
Define how objects are stored in java?
Which one will take more memory: an int or integer?
What is the difference between access specifiers and access modifiers in java? 16
Can you write a java class that could be used both as an applet as well as an application?
If a method is declared as protected, where may the method be accessed in java programming?
Is heap stored in ram?
Can we make main() thread as daemon?
What are the advantages of packages in java?
What is singletonlist in java?