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 is a layout manager and what are different types of layout managers available in java awt?
Can we have more than one package statement in the source file?
What are the differences between graph and tree?
What are the types of casting?
What is string data type?
What is the java idl system?
What is the relationship difference the canvas class and the graphics class?
What is a function easy definition?
What is java jit compilers?
What is string example?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Can I extend singleton class in java?
placement papaers of spring computing technology
What are default methods ?
What is a substitution variable?