Skip to Main Content
Java 6 Illuminated: An Active Learning Approach, 2nd Edition
book

Java 6 Illuminated: An Active Learning Approach, 2nd Edition

by Julie Anderson, Herve J. Franceschi
February 2008
Intermediate to advanced content levelIntermediate to advanced
1288 pages
39h 39m
English
Jones & Bartlett Learning
Content preview from Java 6 Illuminated: An Active Learning Approach, 2nd Edition
Arrange catch blocks to
handle the more special-
ized exceptions first,fol-
lowed by more general
exceptions.
SOFTWARE
ENGINEERING TIP
11.1 Simple Exception Handling 747
exception occurred, and also notice that our prompt clearly explains the
problem to the user.
11.1.2 Catching Multiple Exceptions
If the code in the try block might generate multiple types of exceptions, we
can provide multiple catch blocks, one for each possible exception. When
an exception is generated, the JVM searches the catch blocks in order. The
first catch block with a parameter that matches the exception thrown will
execute; any remaining catch blocks will be skipped.
Remember that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Kathy Walrath, Mary Campione, Alison Huml, Sharon Zakhour
Java Illuminated, 4th Edition

Java Illuminated, 4th Edition

Julie Anderson, Hervé J. Franceschi

Publisher Resources

ISBN: 9780763749637