Checked Exception vs Unchecked Exception

版权声明:未经允许,不得转载 https://blog.csdn.net/kangkanglou/article/details/83869029

Unchecked exceptions are the run-time errors that occur because of programming errors, such as invalid arguments passed to a public method. The Java compiler does not check the unchecked exceptions during program compilation. For example, if you divide a number by zero, an unchecked or run-time exception is raised.

在这里插入图片描述


在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/kangkanglou/article/details/83869029
今日推荐