Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / niltarlekar
public class AB implements A,B
{
public static void main(String args[])
{
}
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How can we make a class virtual?
Can we increase array size dynamically in java?
Explain all java features with real time examples
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What is break and continue statement?
What is the basic of java?
Explain the difference between map and flatmap stream operation?
What are the two ways in which thread can be created?
Can private class be inherited in java?
Is it necessary that each try block must be followed by a catch block?
Can we compare two strings in java?
How can we access some class in another class in java?
Is arraylist ordered in java?
How do you implement singleton class?
When will we prefer to use set and list in java and why?