Skip to main content

Exception costs

Posted by daniel on February 11, 2004 at 7:41 AM PST

How expensive are exceptions? The debate continues.

In
Also in Java Today
,
Kirk Pepperdine and Jack Shirazi's latest Eye on Performance looks at Exceptions to exceptions . They look at the difference between using instanceof and catching a ClassCastException. They look specifically at the costs involved in handling an exception other than just the normal cost of an exception as a first class object. Their conclusion is not to prematurely optimize but, as usual, to only use exceptions in exceptional circumstances.

You can download a preview of the chapter " Building Eclipse Projects Using Ant" from Steve Holzner's forthcoming book Eclipse: A Java Developer's Guide. Note that this is a beta release; this chapter has not yet been fully edited, and the final version will not appear in this raw form. The images in the final version will also be of higher quality than those presented in this preview.


In today's Weblogs Sue Spielman continues her coverage of ETech in Why It Is Great To Be A Geek. She explains that "There are times when it's fun to be a geek, and then there are times when it's great to be a geek. If you are only interested in what goes on within the walls of your cube, don't bother reading this blog.

Ben Galbraith comments on Jonathan Schwartz's recent "article/editorial/advertisement" about the death of middleware. In Commoditization of Basic IT Infrastructure is a Bad Thing? Galbraith finds himself agreeing with and defending Schwartz's position.


In Projects and Communities Courtesy of the Apple java-dev list, a hack to get generics, autoboxing, new loop structure and other features running on Mac OS X's Java 1.4.2 implementation.

Download a preview of the upcoming Cayenne 1.1 release with distributed caching using JavaGroups or JMS, persistent objects validation before commit, and a framework for integration of persistent layer with Swing.


In today's java.net News Headlines
:

Registered users can submit news items for the href="http://today.java.net/today/news/">java.net News Page using
our news submission
form
. All submissions go through an editorial review by news director
Steve Mallet before being posted to the site. You can also subscribe to
thejava.net
News RSS feed
.


Current and upcoming
Java Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e"> events submission
form. All submissions go through an editorial review before being
posted to the site.


Archives and Subscriptions: This blog is delivered weekdays as the
Java
Today RSS feed
. All java.net members can subscribe to the email
updates for the site at the href="https://java-net.dev.java.net/servlets/ProjectMailingListList">
java-net Mailing Lists page. You must be logged in to subscribe
to
the javanet_Daily and javanet_Weekly lists. Also, once this page
is no longer featured as the front page of
java.net
it will be archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.