Paul Clapham wrote:And also what the context is. I assume that you're asking about a web application of some kind, but you posted this in JDBC (where it clearly doesn't belong) so maybe it isn't. I'm going to take a guess and move it out of JDBC anyway.
If you have a genuine case where it makes sense to implement one method and not the other, then that means your interface is badly designed, and it should be split so the methods are in more than one interface. That way you can implement only the ones that make sense.