Java · Hard · Pro
return in try/finally — overriding return value?
JavaTrickySenior
return in try/finally
If try executes return, the finally block still runs before the method actually returns. A return inside finally overrides the try's return value—and suppresses uncaught exceptions…