【发布时间】:2011-03-22 06:06:45
【问题描述】:
我从来没有正确理解 finally 语句的用法。谁能告诉我两者之间有什么区别:
try {
a;
block;
off;
statements;
} catch (Exception e) {
handle;
exception;
e;
} finally {
do;
some;
cleanup;
}
一方面并且:
try {
a;
block;
off;
statements;
} catch (Exception e) {
handle;
exception;
e;
}
do;
some;
cleanup;
另一方面
【问题讨论】: