This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cost of having try-catch statements?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]