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.

  • 相关阅读:
    005 HTML+CSS(Class027
    004 HTML+CSS(Class024
    003 HTML+CSS(Class011
    002HTML+CSS(class007-010)
    001HTML+CSS(class001-006)
    021 vue路由vue-router
    020 Vue 脚手架CLI的使用
    019 Vue webpack的使用
    018 vue的watch属性
    017 vue的插槽的使用
  • 原文地址:https://www.cnblogs.com/zhonghan/p/3597149.html
Copyright © 2011-2022 走看看