Computer Science, asked by kishor8942, 10 months ago

Two interfaces with same methods having same signature but different return types

Answers

Answered by Anonymous
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