Checked exceptions require try catch

.Checked exceptions (exceptions that the compiler requires must be handled)  :

  Except for Error, RuntimeException and its subclasses, other Exception classes and their subclasses are all checkable exceptions. The characteristic of this kind of exception is that the Java compiler will check it, that is, when such an exception may occur in the program, either catch it with a try-catch statement, or declare it with a throws clause, otherwise the compilation will not pass. .

SQLException sql statement exception

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325728314&siteId=291194637