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 is the purpose of default constructor?
What are latest features introduced with java 8?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is java life cycle?
How do you create an array in java?
What is token in java?
What is string :: npos?
What is the primary benefit of encapsulation?
What is difference between identifier and variable?
What is an example of declaration?
Why can't we make a class private in java?
What does I ++ mean?
Is 0 an irrational number?
What is final keyword?
What is jvm? Why is java called the platform independent programming language?