all, section 8.5.
8.5. Runtime Exceptions--The Controversy
Copied from:
http://java.sun.com/docs/books/tutorial/essential/exceptions/
-
Although Java requires that methods catch or specify checked exceptions, they do not have to catch or specify runtime exceptions,
that is, exceptions that occur within the Java runtime system.
-
Because catching or specifying an exception is extra work,
programmers may be tempted to write code that throws only runtime exceptions
and therefore doesn't have to catch or specify them.
-
This is "exception abuse" and is not recommended.
Created by
unroff,
java2html &
& hp-tools.
© by csfac. All Rights Reserved (2010).
It is not allowed to print these pages on a CAST printer.
Last modified: 01/April/10 (17:16)