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 the elements of java?
What are the legal operands of the instanceof operator?
What is javac_g?
Explain the importance of throwable class and its methods?
What is treeset in java?
Which of the following classes will have more memory allocated?
What is remote method invocation (rmi)?
What access modifiers can be used for methods?
What is == mean?
How to convert string to byte array and vice versa?
Why do we create public static method in java?
Explain different ways of creating a thread. Which one would you prefer and why?
What is Mutex (Mutual Exclusion Object) ?
Which package is used for pattern matching with regular expressions?
What is the purpose of lambda expressions?