If execution does not raise an exception, then control passes to the final block. So is the return statement in the try block ignored by the JVM? , Or, if an exception occurs, then control passes to the catch block, and also ignores the returned status and control passes to the final block and returns from the final
public class Helper { public int showException(int a, int b){ try{ int c=a/b; return c; } catch(Exception e){ return 0; } finally{ return 3; } } }
sonal source share