We know that it is expensive to catch exceptions. But, is it also expensive to use a try-catch block in Java even if an exception is never thrown?

I found the Stack Overflow question/answer Why are try blocks expensive?, but it is for .NET.

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *