首页 > 其他 > 详细

Checked Exception VS unChecked Exception

时间:2014-03-13 00:04:14      阅读:573      评论:0      收藏:0      [点我收藏+]

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.

Checked Exception VS unChecked Exception,布布扣,bubuko.com

Checked Exception VS unChecked Exception

原文:http://www.cnblogs.com/zhonghan/p/3597149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!