Checked and unchecked exceptions in java
Checked exceptions: Checked exceptions are those exceptions which are checked by compiler at the compile time. These exceptions will force you to either use try-catch or throws keywords. Checked exceptions include all exceptions except RuntimeException, their subclasses, and Error. Examples: SQLException, IOExceptionetc. import java.io.*; public class Main { public static void main(String[] args) { … Read more