Designing with Exceptions
This article gives design guidelines that pertain to
exceptions. It shows how to decide when to use exceptions,
using examples from the Java API that illustrate appropriate
uses of exceptions. In addition, the article provides some
general guidelines that can help you use exceptions in those
situations where you've decided they are appropriate.
Exceptional practices, Part 1
In this series articles reviews some best practices for using exceptions effectively. In Part 1 offers guidelines on properly incorporating error handling into classes at design time.
Exceptions in Java
This tutorial covers the nuts and bolts of what exceptions are
and how they work in the Java language and virtual machine. It
discusses exception classes and objects, throwing and catching
exceptions, the method invocation stack, the throws clause,
checked vs. unchecked exceptions, and finally clauses.
Failure and Exceptions
James Gosling talks with Bill Venners about how to build solid
apps, organize your catch clauses, scale checked exceptions,
and deal with failure.
Handle Exceptions in Web Applications with EJB and Struts
A lot have been discussed on various aspects of exception handling in java. This article presents a concrete end-to-end strategy to design and handle exceptions in a typical web application with EJB and a web framework such as Apache Struts.
How the Java virtual machine handles exceptions
All Java programs are compiled into class files that contain
bytecodes, the machine language of the Java virtual machine.
This article takes a look at the way exceptions are handled by
the Java virtual machine, including the exception table and the
bytecodes related to exceptions.
Should Java class exceptions always be checked?
Most of the advice on the use of exceptions in the Java language suggests that checked exceptions should be preferred in any case where an exception conceivably might be caught. Recently, several prominent writers have started to come to the position that unchecked exceptions may have more of a place in good Java class design than previously thought. This article looks at the pros and cons of using unchecked exceptions.
The Final (Constants) Story
Generally, it is better to swap a logic error for a compiler error. Compiler errors can be found quickly and fixed just as quickly, whereas logic errors can take thouands of man-hours to find and fix. This article explains how to use the Java keyword final to change logic errors into compiler errors, thus saving you an enormous amount of time.
Try-finally clauses defined and demonstrated
All Java programs are compiled into class files that contain
bytecodes, the machine language of the Java virtual machine.
This article takes a look at the way finally clauses are
handled by the Java virtual machine, including an examination
of the relevant bytecodes.
Advanced Imaging provides the latest information on the imaging hardware, software and peripherals that are used in capturing, displaying, manipulating and storing images.
subscribe now