zoukankan      html  css  js  c++  java
  • Checked Exception VS unChecked Exception

    1, unChecked Exception,  represent a defect in programmer(bugs).  should inherit RuntimeException or Error.

    Unchecked runtime exceptions represent conditions that, generally speaking, reflect errors in your program's logic and cannot be reasonably recovered from at run time.

    2, checked Exception, represent invalid conditions in areas outside the immediate control of the program (invalid user input, database problems, network outages, absent files).

    class Throwable implements Serializable

         --Exception extends Throwable                   ------checkException    //should consider this situation in your programmer.

               --RuntimeException  extends Exception ------uncheckException  //bugs

         --Error extends Throwable.                         ------uncheckException  //Error

    Angry   Angry  Angry  Angry

    I'm very angry, help I will nerver forget. Gold bless me.

  • 相关阅读:
    C语言|博客作业08
    C语言|博客作业04
    C语言|博客作业02
    C语言|博客作业06
    C语言|博客作业03
    第一周作业
    C语言|博客作业05
    C语言|博客作业07
    C语言|博客作业09
    为什么get比post更快
  • 原文地址:https://www.cnblogs.com/zhonghan/p/3597149.html
Copyright © 2011-2022 走看看