This link has been bookmarked by 11 people . It was first bookmarked on 26 Apr 2007, by mrikondu.
-
02 Jul 10
-
28 Jul 09
-
three basic categories of exceptions
-
The first kind of exception is the checked exception.
-
All exceptions are checked exceptions, except for those indicated by
Error,RuntimeException, and their subclasses. -
The second kind of exception is the error
-
The third kind of exception is the runtime exception.
-
Errors and runtime exceptions are collectively known as unchecked exceptions.
-
-
06 Jul 09
-
A well-written program will catch this exception and notify the user of the mistake, possibly prompting for a corrected file name.
-
Checked exceptions are subject to the Catch or Specify Requirement. All exceptions are checked exceptions, except for those indicated by
Error,RuntimeException, and their subclasses. -
. An application might choose to catch this exception, in order to notify the user of the problem — but it also might make sense for the program to print a stack trace and exit.
-
Errors are not subject to the Catch or Specify Requirement. Errors are those exceptions indicated by
Errorand its subclasses. -
Runtime exceptions are not subject to the Catch or Specify Requirement. Runtime exceptions are those indicated by
RuntimeExceptionand its subclasses. -
Errors and runtime exceptions are collectively known as unchecked exceptions.
-
-
02 Apr 09
-
Catch or Specify Requirement.
-
- A
trystatement that catches the exception. Thetrymust provide a handler for the exception, as described in Catching and Handling Exceptions. - A method that specifies that it can throw the exception. The method must provide a
throwsclause that lists the exception, as described in Specifying the Exceptions Thrown by a Method.
- A
-
The first kind of exception is the checked exception
-
Checked exceptions are subject to the Catch or Specify Requirement
-
Errors and runtime exceptions are collectively known as unchecked exceptions.
-
-
24 Sep 08
-
either
-
-
03 Sep 08
-
must provide a handler
-
A
trystatement that catches the exception -
must provide a
throwsclause -
A method that specifies that it can throw the exception
-
checked exception
-
-
03 Jul 08
-
The first kind of exception is the checked exception
-
checked exception
-
The second kind of exception is the error.
-
The third kind of exception is the runtime exception.
-
-
26 Apr 07
-
Errors and runtime exceptions are collectively known as unchecked exceptions.
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.