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
What is a boolean output?
How do you add an element to a hashset in java?
What is type conversion in java?
What is the purpose of encapsulation?
What is the difference between iterator and list iterator?
Can you override private or static method in java?
What is a double?
Why set is used in java?
What are the six ways to use this keyword?
Are functions objects in java?
java Technical questions asked by JPMC
Why is a constant variable important?
Explain the purpose of garbage collection in Java?
What does the “static” keyword mean?
What is the difference between Java1.4 and Java1.5