[EMAIL PROTECTED] wrote:


> The first two times use an exception for the error condition while
> the last one uses an explicit check. Although a try/catch clause looks
> like less work on the source-code level, the JVM must do a lot more
> in this case. Therefore exceptions should only be used to the case their name
> refers to: in exceptional cases.

Could you point to code you have used ?
It is obvious that 'exceptions' way is a lot slower if exception happens
- but if this doesn't happen it should be faster. So try to compare code
in which no such critical case happens, and then you should see
improvement in speed.

Artur

Reply via email to