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
What are the Class Libraries ?
What is t type java?
Why put method is idempotent?
what is the messsage u r going to get from an objectoriented programing?
How an object is serialized in java?
Why use string handling in Java?
What is the use of runnable interface?
How many ways can we create singleton class?
Why is whitespace important?
Why can't you declare a class as protected?
What environment variables do I need to set on my machine in order to be able to run java programs?
What do you mean by platform independence of Java?
What are some characteristics of interference class?
What is the final class modifier?
When to use runnable interface vs thread class in java?