看板 [ java ]
討論串[問題]處理static constructor中的exception
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者jtmh (Believing is seeing! ^^)時間19年前 (2006/10/29 03:03), 編輯資訊
0
0
0
內容預覽:
引述《hyk.bbs@bbs.wretch.cc (夏天的微笑)》之銘言:. 硬要丟出去是有辦法的,. 問題是你是想丟給誰處理呢?. 在由 JVM 自動幫你 load class 的情況下,. 你丟出去的 Exception 會是 JVM 接到的,. 然後 JVM 會再丟出 ExceptionI

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者hyk.時間19年前 (2006/10/28 21:32), 編輯資訊
0
0
0
內容預覽:
static constructor中的exception是不是只能在該static constructor中處理掉?. 有辦法將exception丟出去嗎?. class A{. static{. try{. throw new Exception("a");. }catch(Exception
(還有130個字)
首頁
上一頁
1
下一頁
尾頁