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 are the topics in core java?
Write java program to reverse string without using api?
Is empty .java file name a valid source file name?
Explain java code for recursive solution's base case?
How to run a JAR file through command prompt?
Is arraylist sorted in java?
Is main an identifier?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What are the new features in java 8? Explain
Explain covariant method overriding in java.
How to declare an arraylist in java?
What is mean by exception?
Can java arraylist hold different types?
What is the difference between a checked and an unchecked exception?
What is the use of default method in interface in java?