One of hundreds of answers available with our premium content service.
A: A Java checked exception represents a problematic case that can be anticipated when one instantiates an object or calls a method. A typical example is when you attempt to create a file or open a URL connection, which may fail for many reasons. Checked exceptions must be declared in the throws statement of a method header, and any class that calls the method must ensure that it handles all checked exceptions that may occur.
… full answer hidden
Premium members click below for full answer
What's the difference between checked and un-checked exceptions?