Understanding of the try catch finally

Try catch finally understanding the
1.finally always running, even in the catch in thorw thrown up.

2.finally it does not end after the return, but continued to run finally

2. sequence of words is to try- "finally or try-" "finally catch-
Anyway finally will run, and prevents the process impact
so with such writing
try {} // code is not
the finally {
// logic code
}

Own understanding, if wrong, please point out.

Guess you like

Origin www.cnblogs.com/JerrChamplons/p/11571389.html