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
Can a string be null?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
how do I create a runnable with inheritance? : Java thread
Explain the available thread states in a high-level?
What is array length in java?
What is a class in java?
What does bitwise or mean?
what is the purpose of "virtual"?
Explain super keyword in java.
What is the range of the short type?
What is factor r?
What is double in java?
What restrictions are placed on method overloading in java programming?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Why object class is super class for every class in java?