Checked Exception: The Exception that is checked at compilation time by the Java compiler is called Checked Exception.
1. The executable class is not found in the classpath when we try to load a class using Class,forName. This is handled by ClassNotFoundException
2. There can be hardware faults during file reading and printing which is handled by the class IOException.
3. There can be some network failures to connect to a remote database or it may be a wrong SQL statement. All these scenarios are presumed and will be handled by the class SQLException.
• Unchecked Exception: The Exception that is checked by the JVM is called Unchecked Exception
Question and answer is powered by AnsPress.io