Cost of having try-catch statements?

Martin Egholm Nielsen martin@egholm-nielsen.dk
Tue Aug 10 14:56:00 GMT 2004


Hi there,

I was wondering: Is there any significant cost in having "unused" 
try-catches in my code?
That is, I have a method that 99.99% of the times invoked never throws a 
given exception. However, in case it does, I need to log it...

Regards,
  Martin Egholm



More information about the Java mailing list