Exceptions no longer incur overhead?
- From: "void.no.spam.com@xxxxxxxxx" <void.no.spam.com@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 14:43:34 -0700
One of our classes has a method to look up an object. If the object
does not exist, it throws an exception to indicate that. I thought it
would be better to just return null, as exceptions incur overhead. I
talked to the senior java developer who wrote the class, and he said
that recent versions of Java have improved exceptions to the point
that they do not really incur any overhead. Is this true?
.
- Follow-Ups:
- Re: Exceptions no longer incur overhead?
- From: Matthias Buelow
- Re: Exceptions no longer incur overhead?
- From: Mark Rafn
- Re: Exceptions no longer incur overhead?
- From: Tom Hawtin
- Re: Exceptions no longer incur overhead?
- From: Mike Schilling
- Re: Exceptions no longer incur overhead?
- Prev by Date: Re: Using mandatory libraries (custom class loading vs. expanding libraries)
- Next by Date: Re: Need help with using org.apache.log4j pakages (LogManager)
- Previous by thread: [JFreeChar] What is the best kind of charts for my problem ?
- Next by thread: Re: Exceptions no longer incur overhead?
- Index(es):