In what sequence does the finally block gets executed

: If you put finally after a try block without a matching catch block then it will be

executed after the try block

If it is placed after the catch block and there is no exception then also it will be

executed after the try block

If there is an exception and it is handled by the catch block then it will be executed

after the catch block