<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-1  評論-68  文章-98  trackbacks-0
    Java有2類錯誤類:error和exception。下圖是Java錯誤類的結構圖:



    exception比較好捕獲,error就比較難捕獲了,如OutOfMemoryError和StackOverflowError。
    下面列出幾種常見的error表述:

    Error?????????????????????????????????Package??????Description

    Error?????????????????????????????java.lang??????Error is the parent class for all other error objects.

    NoClassDefFoundError??????java.lang??????A class definition could not be found.

    NoSuchFieldError??????????????java.lang??????A specified field could not be found.

    NoSuchMethodError??????????java.lang??????A specified method could not be found.

    OutOfMemoryError???????????java.lang???????The Java Virtual Machine that you're running has run out of memory.

    StackOverflowError???????????java.lang??????The memory stack is full. You are calling programs too deep, or using too large (or too many) variables in your path of execution.

    VirtualMachineError????????????java.lang??????VirtualMachineError is the parent class to several serious environment errors. It indicates that some serious resource problem exists on the host Java machine.

    摘自《Java Error Handling》 http://www.nd.edu/~cwood1/teaching/java/JavaErrors.htm

    最近整理、測試程序中,遇到了不少異常和錯誤,附上相關的web資源:

    Sun Tutorial on Exceptions -- Lesson: Handling Errors with Exceptions
    http://java.sun.com/docs/books/tutorial/essential/exceptions/

    Exceptions in Java (by Bill Venners)
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-exceptions.html

    Designing with exceptions (by Bill Venners)
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-techniques_p.html

    異常設計
    http://kb.csdn.net/java/Articles/200507/0c8d9bcb-deed-408c-9de6-977feeff1a6f.html

    Exception Handling: The good, the bad and the ugly (by Michael C. Daconta)
    http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2686919,00.html

    異常處理優劣觀
    http://www.gbg.cn/J2SE/17.html

    Exceptions in Java: Nothing Exceptional about them (by Gaurav Pal and Sonal Bansal)
    http://www.javaworld.com/javaworld/jw-08-2000/jw-0818-exceptions_p.html

    Using your own exception classes in Java (by Keld H. Hansen)
    http://javaboutique.internet.com/tutorials/Exceptions/

    Java異常處理之陋習展播
    http://www.jspcn.net/htmlnews/11049353245931571.html

    Using your own exception classes in Java (by Keld H. Hansen)
    http://javaboutique.internet.com/tutorials/Exceptions/

    異常處理--技術文章列表
    http://www.jspcn.net/htmlnews/B1106116974203.html

    posted on 2006-05-17 16:09 Xu Jianxiang 閱讀(507) 評論(0)  編輯  收藏 所屬分類: Java Tech
    主站蜘蛛池模板: 亚洲欧洲国产成人综合在线观看| 成人免费无码大片A毛片抽搐 | 亚洲国产精品久久久久秋霞影院| 免费精品视频在线| 又爽又黄无遮挡高清免费视频| 亚洲av无码av在线播放| 视频免费在线观看| 午夜老司机免费视频| 亚洲AV成人影视在线观看| 免费视频专区一国产盗摄| 亚洲日韩一页精品发布| 免费无码av片在线观看| 国产成A人亚洲精V品无码性色 | 毛片免费全部播放无码| 亚洲国产成+人+综合| 四虎国产精品免费久久| 亚洲精品宾馆在线精品酒店| 免费视频精品一区二区三区| 亚洲av无码一区二区乱子伦as| 国产成人+综合亚洲+天堂| 在线日韩av永久免费观看| 亚洲国产精品xo在线观看| 妻子5免费完整高清电视| 亚洲欧美国产国产一区二区三区 | 成年性生交大片免费看| 色偷偷尼玛图亚洲综合| 国产亚洲色婷婷久久99精品91| 色噜噜噜噜亚洲第一| 亚洲日韩在线观看| 99热这里有免费国产精品| 亚洲综合色区中文字幕| 亚洲一级毛片免费在线观看| 亚洲国产精品国自产电影| 在线看片v免费观看视频777| 日本亚洲欧美色视频在线播放| 亚洲乱码中文字幕综合 | 国产黄在线播放免费观看| 水蜜桃亚洲一二三四在线| 国产无遮挡裸体免费视频在线观看| 亚洲码在线中文在线观看| 国产中文字幕免费|