Two interfaces with same methods having same signature but different return types
Answers
Answered by
1
Explanation:
If two interfaces contain a method with the same signature but different return types, then it is impossible to implement both the interface simultaneously. According to JLS (§8.4. ... It is a compile-time error to declare two methods with override-equivalent signatures in a class.
Similar questions