★ wanayoo — archive 1999
http://java.sun.com/developer/codesamples/errorhndl.html
Nouvelle recherche
|
Portail wanayoo
developers.sun.com
»
search tips
|
Search:
in Developers' Site
in Sun.com
Developers Home
>
Products & Technologies
>
Java Technology
>
Reference
>
Code Samples and Apps
>
Index of Code Samples
>
Profile and Registration
|
Why Register?
Code sample
Error Handling Code Samples
Printable Page
The Java programming language provides a flexible error handling model.
ListOfNumbers.java
shows how to use a
try
and
catch
block to catch exceptions. For supporting information see
The Java Tutorial: Handling Errors Using Exceptions
.
ListOfNumbersWOHandler.java
demonstrates how the compiler handles runtime and checked exceptions differently. A program must handle checked exceptions, but does not have to handle runtime exceptions. For supporting information see
The Java Tutorial: Handling Errors Using Exceptions
.