<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
    主站蜘蛛池模板: 99久久婷婷免费国产综合精品| 亚洲成网777777国产精品| 成年网站免费入口在线观看| 78成人精品电影在线播放日韩精品电影一区亚洲 | 亚洲国产V高清在线观看| 四虎永久在线精品免费观看视频| 免费成人在线视频观看| 色妞www精品视频免费看| 亚洲情A成黄在线观看动漫软件 | 黄页网址大全免费观看12网站 | 成人在线免费观看| aⅴ在线免费观看| 亚洲视频在线免费观看| 日韩av无码免费播放| 青青草97国产精品免费观看| 最新亚洲精品国偷自产在线 | 97性无码区免费| 性无码免费一区二区三区在线| fc2免费人成在线| mm1313亚洲国产精品无码试看| 亚洲中文无码mv| 国产精品亚洲综合五月天| 亚洲精品不卡视频| 91久久亚洲国产成人精品性色| 亚洲丝袜美腿视频| 亚洲国产精品国自产电影| 亚洲国产精品无码专区在线观看| 亚洲一区AV无码少妇电影☆| 国产亚洲精午夜久久久久久| 国产成人精品日本亚洲专区 | 黄色片网站在线免费观看| 午夜亚洲国产理论片二级港台二级 | 在线综合亚洲中文精品| 亚洲一区二区三区不卡在线播放| 亚洲白色白色在线播放| 亚洲成a人片在线观看中文app| 亚洲日产2021三区在线 | 日韩免费一区二区三区在线| 亚洲国产精品免费观看| 国产无人区码卡二卡三卡免费 | 亚洲精品GV天堂无码男同|