"it is uncommon to use a return statement in a finally block, because it effectively eliminates all choice of return value. Whatever you want to return, it will always be the finally block's return statement that runs before any other return statements, because finally must always run before your method returns. "
I did not understand this point still confused.
1)What is the order in which the return statements in try,catch,finally blocks get executed?
2)A finally executes no matter what the condition is ,so as I understand the method(handles the exception) that is calling the risky method(throws the exception) has a return statement at the end will be executed after the return statement in finally block .
3)The return statement in try,catch and finally blocks is what the risky method was supposed to return,because when the risky method throws an exception the control jumps to catch or finally block depending on what is written and the compiler still waits on a return value from the risky method.Is my understanding correct.
Appreciate your time and help .