What is the difference between checked and Unchecked Exceptions in Java ?
All predefined exceptions in Java are either a checked exception or an unchecked exception. Checked exceptions must be caught using try /java/ catch() block or we should throw the exception using throws clause. If you don’t, compilation of program will fail. All exceptions in RuntimeExcetption and Error class are unchecked exception.