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


Please Help Members By Posting Answers For Below Questions

What is the difference between heap memory and stack memory?

613


How can you handle java exceptions?

525


What does the exclamation mark mean in java?

589


What do you mean by default constructor in java?

574


What is application system?

501






Why java does not support pointers?

559


Is cout buffered?

682


What is the different between get and post?

496


Why java strings are immutable in nature?

586


Which package has light weight components in java programming?

673


How does a for loop work?

504


Why we cannot override static method?

556


What are wrapper classes in java?

594


Does treeset allow null in java?

507


What are the elements of java?

559