Chapter 6. Exceptions, Assertions, Casts, and Variables

For every complex problem, there is a solution that is simple, neat, and wrong.

H. L. Mencken

This chapter describes the costs of various programmatic elements, including exceptions, assertions (new in 1.4), casts, and variables. It also describes how to optimize your use of these elements.