News

What you’ll learn in this Java tutorial About Java exceptions and their types The difference between checked and unchecked exceptions Three ways to throw Java exceptions How to test for ...
For example, if a file is not present and is being accessed, checked exception should be used. API usage also benefits heavily from checked exception as developers can control different conditions.
Aborting."); System.exit(1); } Some other good features of Java exception handling are checked exceptions, user-defined exceptions, and the new Java logging API coming out in JDK 1.4.