The Catch or Specify Requirement (The Java™ Tutorials > Essen...
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Saved by 4 people (0 private), first by anonymouse user on 2007-04-26
- Vincentlcy on 2008-09-03 - Tags no_tag
- Redertseng on 2008-04-08 - Tags java , exceptions
Public Sticky notes
Errors and runtime exceptions are collectively known as unchecked
exceptions.
Highlighted by mrikondu
This means that code that might throw
certain exceptions must be enclosed by either of the following:
Highlighted by redertseng
A
try statement that catches the exception
Highlighted by vincentlcy
must provide a handler
Highlighted by vincentlcy
A
try statement that catches the exception. The
try must provide a handler for the exception
Highlighted by redertseng
must provide a
throws clause
Highlighted by vincentlcy
A method that specifies that it can throw the
exception
Highlighted by vincentlcy
A method that specifies that it can throw the
exception. The method must provide a
throws clause
that lists the exception
Highlighted by redertseng
checked exception
Highlighted by sohohk
The first kind of exception is the checked exception
Highlighted by sohohk
checked exception
Highlighted by vincentlcy
The second kind of exception is the error.
Highlighted by sohohk
The third kind of exception is the runtime exception.
Highlighted by sohohk


Public Comment