大家好
我想問這題
31. //some code here
32. try{
33. //some code here
34. }catch(Some Exception se) {
35. //some code here
36. }finally{
37. //some code here
38. }
Under which three circumstances will the code on line 37 be executed? (Choose
three.)
A. The instance gets garbage collected.
B. The code on line 33 throws an exception.
C. The code on line 35 throws an exception.
D. The code on line 31 throws an exception.
E. The code on line 33 executes successfully
答案BCE
B跟E沒什麼疑問
但
1.C在34行catch住exception並執行35行時若又發生錯誤
不會中斷整個執行並將錯誤的exception先丟出嗎?
2.選項A是幹什麼的?感覺跟這題沒什麼關係?