上面代码中finally代码段会被执行吗
下面代码中finally代码段会被执行吗?
try {
if (choice) {
while (true)
} else {
system .exit(1):
}
}finally {
codetocleanup();
}
try {
if (choice) {
while (true)
} else {
system .exit(1):
}
}finally {
codetocleanup();
}