Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / akhil agarwal
Interface A
{
string test();
}
Interface B
{
int test();
}
class AB implements A,B
{
string test();
int test();
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the differences between abstract class and interface?
What is the difference between @before and @beforeclass annotation?
What is the difference between throw and throws keywords?
What are the different types of constructor?
What is the difference between private & public & friendly classes?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
Explain the use of shift operator in java. Can you give some examples?
How do I enable java in safari?
What is abstract class constructor called?
What is difference between array and vector?
What is java english?
Is boolean a wrapper class in java?
How can you say java is object oriented?
What does a method signature consist of?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?