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
how to create daemon thread in java?
Which graphs are functions?
Explain heap sort?
What is a ?
Which non-unicode letter characters may be used as the first character of an identifier?
Can we overload the constructors?
Why is singleton not thread safe?
What methods are used to get and set the text label displayed by a button object?
What is method reference?
Name few java util classes introduced with java 8 ?
Write a program to check string is palindrome without using loop?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Explain the concept of proper inheritance?
What is the SimpleTimeZone class?
what is difference between equals and ==?