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
What are different ways of object creation in java ?
What is the difference between final, finally and finalize()?
Do extraneous variables affect validity?
How many decimal digits is 64 bit?
Why is the singleton pattern considered to be an anti pattern?
What are loops in java? What are three types of loops?
What is a dynamic array java?
Why synchronization is important?
Does substring start with 0?
Write a program to search a number in the given list of numbers.
Can we overload the main() method?
Is math an abstract class in java?
What is are packages?
Do loops java?
What is collection class in java?