Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thank for your reply, but in case when there is two interfaces with two methods with the same signature but different return type, you couldn't implement bot of them. And nobody couldn't predict that. Commented Dec 2, 2012 at 21:20
  • @SoftwareEngeneeringLearner In Java method signature includes return type Commented Dec 3, 2012 at 3:34
  • 2
    "Definition: Two of the components of a method declaration comprise the method signature—the method's name and the parameter types." from here: docs.oracle.com/javase/tutorial/java/javaOO/methods.html - so it includes method name and number and types of parameters, no return type unfortunately/fortunately (there is a whole different question on this). Commented Dec 3, 2012 at 11:44
  • @SoftwareEngeneeringLearner Sorry, my bad here. You are correct and your question makes more sense now, but I really think you should either rephrase, or even better, ask a new question about this, specifying the differing return types. Having two methods with the same signature, but different return types (IMO) can be an issue. Commented Dec 3, 2012 at 22:26