Java exception ---- finally and properly close the resource block usage

  1. 1 , a finally defined in the source code is usually closed, because the resource must be released.  

  2. 2 , a finally only one case will not be executed. When performing the System.exit ( 0 ); the finally will not be executed. 


Guess you like

Origin blog.51cto.com/14028890/2400383