1. 程式人生 > >Checked Exception vs Unchecked Exception

Checked Exception vs Unchecked Exception

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.

在這裡插入圖片描述

在這裡插入圖片描述