1 , a finally defined in the source code is usually closed, because the resource must be released.
2 , a finally only one case will not be executed. When performing the System.exit ( 0 ); the finally will not be executed.
Java exception ---- finally and properly close the resource block usage
Guess you like
Origin blog.51cto.com/14028890/2400383
Recommended
Ranking