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.

浙公网安备 33010602011771号