无论try块是否抛出任何异常或任何catch块捕获了任何异常,都将执行finally块。
/*n o w j a v a . c o m 提 供*/ try { statements that can throw exceptions } catch (exception-type identifier) { statements executed when exception is thrown } finally { statements that are executed whether or not exceptions occur }