This question is kind of vague, but if I'm interpreting it correctly, it would not be possible to have two return statements on the same path in the same method. The method would return the first value and then immediately return back to the method which called it, leaving the second return statement unreachable. In fact, if you try this in your own code, it will throw an Unresolved compilation problem: Unreachable code
error at you.
The bottom line is that each path in a method should either return exactly one item (if your method is not returning type void
), or nothing (if it is returning type void
).