Interface A {
String test();
}
Interface B {
int test();
}
Create a class AB which must implements both A & B
interfaces.
Answer Posted / kssrk ramesh
forget about implementing the interface
First of all can we can not have two similar method names
only with return type as different.As per overloaded method
concept it is not acceptable.So inorder to implement the
interfaces we need to do like that which is not acceptable
as per overloaded methods principle and hence compilation
error.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is the size of string?
What is core java called?
Write a function to find out longest palindrome in a given string?
What is arrays fill in java?
What is continuity of a function?
Why does java doesnt suuport unsigned values?
Can we have try without catch block?
What is thread safe java?
What are constructors in java?
Is void a data type?
How can we pass argument to a function by reference instead of pass by value?
Is a case study a method or methodology?
How will you add panel to a frame?
What is == mean?
What is string args [] in java?