Please see the following code and explain the output behavior.
public class MyFinalTest { public int doMethod(){ try{ throw new Exce
finally block will always execute (only exception is it encounters System.exit() anywhere before it), so simply the 5 is replaced (overridden) by 10 before returning by finally block