What is checked and unchecked exceptions?

https://blog.csdn.net/kingzone_2008/article/details/8535287
Most people use unchecked exceptions.
Checked exception: try catch throw
Unchecked exception: runtime exception, there are some common runtime exception: arithmetic exception, classcast exception, indexOutOfBoundsException illegalArgumentException, NullPointerExecptionextends

        Check exception: compile failure
       Uncheck exception: compile will be normal, if there is anything wrong, it will show them in console.
posted @ 2020-10-29 10:14  EvanMeetTheWorld  阅读(14)  评论(0)    收藏  举报