Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / ganesh
yes , we cant implement like this.same as above answer.I
tested it .
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is a conditional statement explain with example?
What is hashmap and map?
What is return in java?
What is difference between jdk,jre and jvm?
What are latest features introduced with java 8?
What is derived datatype?
Can you write a java class that could be used both as an applet as well as an application?
How do you detect memory leaks?
When will we prefer to use set and list in java and why?
How do you pass by reference?
What is java abstraction with example?
Can we write any code after throw statement?
Can we define static methods inside interface?
What is the console in java?
What are the differences between wait() and sleep()?