Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / nitin
Ramesh,
I am agree with the technical boudries which you have
talked about. But this is a real problem and have to cope
with it.
We can not change the interfaces at all, but there should
be a way to achieve the goal, may be using inner class or
so.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Can you access the private method from outside the class?
What is Major and importance difference between for and foreach loop ?
Why do we use bufferedreader?
Can java inner class be static?
What is meant by 'bit masking' in java?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
Implement a stack with push (), pop() and min() in O(1) time.
Is java util list serializable?
What does those terms actually mean included in the j.d.k i.6?
What is keyword in oop?
What is the independent variable in an experiment?
Is it possible to write a regular expression to check if string is a number?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is internal variable?