The Artima Developer Community
Sponsored Link

Condition check or exception

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Condition check or exception

Posted by Bryan E. Boone on 09 Jul 1998, 7:10 AM

So even if myObj != null 99.999% of the time, checking for
myObj == null is cheaper than setting up a try/catch block
for myObj?
I guess I could have run some performance tests for this one..



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us