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 path and classpath variables?
What is the equal sign?
What restrictions are placed on method overloading in java programming?
In how many ways we can create threads in java?
What are loops in java?
Can an interface have a class?
What is the difference between length and size in java?
Why java strings are immutable in nature?
What is difference between == and === in js?
What is method overloading with type promotion?
What is array class in java?
What is byte value?
What is Java Package and which package is imported by default?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is a flag variable?