[單項(xiàng)選擇題] 對于下面一段代碼的描述中,正確的是______。public class ex36{ public static void run main
2021-07-20
[單項(xiàng)選擇題] 對于下面一段代碼的描述中,正確的是______。public class ex36{ public static void run main(String[] args) throws Excepion { method(); } static void method() throws Exception try { System.out.println("test"); } finally { System.out.println ("finally"); } } }
A.代碼編譯成功,輸出“test”和“fmally”
B.代碼編譯成功,輸出“test”
C.代碼實(shí)現(xiàn)選項(xiàng)A中的功能,之后Java停止程序運(yùn)行,拋出異常,但是不進(jìn)行處理
D.代碼不能編譯
正確答案:A
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。