mc9s08aw16 CATCH例子程序?qū)嵗?/p>
上傳時間: 2016-05-19
上傳用戶:yuchunhai1990
實驗12 異常處理 12.1 實驗?zāi)康? (1)掌握異常處理的編程特點。 (2)了解Java異常分類層次,常見系統(tǒng)異常。 (3)了解自定義異常的定義及方法異常的拋出與處理。 12.2 知識要點 Java把異常加入Java語言的體系結(jié)構(gòu),為異常定義了類和關(guān)鍵字,簡化了錯誤處理代碼。將錯誤處理從正常的控制流中分離出來,對錯誤實施統(tǒng)一處理。 12.2.1異常處理結(jié)構(gòu) try { 語句塊; } catch (異常類名1 參變量名) { 語句塊; } catch (異常類名2 參變量名) { 語句塊; } finally { 語句塊; } 說明: (1)finally總是執(zhí)行,它是異常處理的統(tǒng)一出口,常用來實現(xiàn)資源釋放,文件關(guān)閉等。 (2)發(fā)生異常時try塊內(nèi)的后續(xù)語句不再執(zhí)行; (3)catch按照次序進(jìn)行匹配檢查處理,找到一個匹配者,不再找其它;catch的排列要按照先個別化再一般化的次序。不能將父類異常排在前、子類異常排在后。 12.2.2 常見系統(tǒng)異常 常見系統(tǒng)異常如表12-1所示。 表12-1 常見系統(tǒng)異常
上傳時間: 2013-12-09
上傳用戶:jhksyghr
a class to help you catch all throwable errors in Java
標(biāo)簽: throwable errors class catch
上傳時間: 2013-12-30
上傳用戶:gdgzhym
how to debug your linux kernel. Just try out
標(biāo)簽: kernel debug linux Just
上傳時間: 2014-11-28
上傳用戶:evil
Instead of finding the longest common subsequence, let us try to determine the length of the LCS. Then tracking back to find the LCS. Consider a1a2…am and b1b2…bn. Case 1: am=bn. The LCS must contain am, we have to find the LCS of a1a2…am-1 and b1b2…bn-1. Case 2: am≠bn. Wehave to find the LCS of a1a2…am-1 and b1b2…bn, and a1a2…am and b b b b1b2…bn-1 Let A = a1 a2 … am and B = b1 b2 … bn Let Li j denote the length of the longest i,g g common subsequence of a1 a2 … ai and b1 b2 … bj. Li,j = Li-1,j-1 + 1 if ai=bj max{ L L } a≠b i-1,j, i,j-1 if ai≠j L0,0 = L0,j = Li,0 = 0 for 1≤i≤m, 1≤j≤n.
標(biāo)簽: the subsequence determine Instead
上傳時間: 2013-12-17
上傳用戶:evil
Italk吧簡易論壇 基于struts+extjs+hibernate+spring+mysql開發(fā)。 /catch目錄為系統(tǒng)截圖 安裝步驟: 1:安裝MYSQL,在root/web-inf/classes/applicationContext.xml中增加或修改用戶名和密碼, 你也可以直接執(zhí)行g(shù)rant.sql來創(chuàng)建系統(tǒng)默認(rèn)使用的用戶名和密碼。 2:創(chuàng)建數(shù)據(jù)庫,italk_src.sql是沒有任何數(shù)據(jù)的數(shù)據(jù)庫腳本, italk_desc.sql是已經(jīng)包含初始化數(shù)據(jù)的數(shù)據(jù)庫腳本。執(zhí)行italk_desc.sql來創(chuàng)建數(shù)據(jù)庫
標(biāo)簽: hibernate struts spring Italk
上傳時間: 2014-01-01
上傳用戶:xiaodu1124
單片機8051串口傳輸語音原代碼,沒有測試過,有興趣的朋友可以try一下.
上傳時間: 2017-03-01
上傳用戶:yimoney
Simple code to test usb connections.Try it...
標(biāo)簽: connections Simple code test
上傳時間: 2014-01-23
上傳用戶:yepeng139
Source of date im try to program ok its my first program in java but i cant download more
標(biāo)簽: program download Source first
上傳時間: 2014-01-22
上傳用戶:yepeng139
時鐘及現(xiàn)在的時間,有得setup the current time more of the powerful tools in this 13-3.asm try to use it. Thanks
標(biāo)簽: the powerful current setup
上傳時間: 2014-01-06
上傳用戶:cccole0605
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1