Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / srinivasa
Class AB Implements A,B{
String test(){
SOS("----");
}
int test(){
SOS("--------");
}
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Is sizeof a keyword in java programming?
Why is a string immutable?
What is the purpose of interface?
Explain Basics of OOP Language in java
Can we declare an interface as final?
Can singleton class be serialized?
Explain thread in java?
What do you understand by java virtual machine?
How many bytes is a char in java?
when should you use stringbuilder class in a program?
What is java volatile?
Can we declare the main method of our class as private?
How do you sort a set in java?
In case of inheritance what is the execution order of constructor and destructor?
What will happen if a thrown exception is not handled?