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 do you declare an array in java?
What is the generic function?
What is the java virtual machine?
What is the char data type?
Explain the difference between private, public, package and protected in java?
What is primitive data type in java?
Explain what is Marker interface?
Which of the following is not an isolation level in the JDBC
What is method overloading in JAVA? Why is it not present in C ?
What do you mean by hashing?
What is the purpose of void class?
What is flush buffer?
What is java life cycle?
What do you mean by static variable?
Can we use catch statement for checked exceptions?