Java-Exception Types and Throws Statement
Exception Types Java exceptions are divided into two categories, called checked and unchecked exceptions. All subclasses of RuntimeException class are unchecked exceptions. All other exceptions are checked exceptions. Checked Exception For checked exceptions, the compiler checks if your program handles them, either by catching them or by specifying (with a throws clause) that the … Read more…