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
How does varargs work in java?
How do you convert string to int in java?
Can we call thread start () twice?
What is OOP's Terms with explanation?
What is the purpose of the enableevents() method?
Why main method is static in java?
How do you check if a number is a perfect square?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
Can a static class have a constructor?
What is valid keyword in java?
What is the difference between the ">>" and " >>>" operators in java?
Is a copy constructor?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What are the advantages of unicode?