Is it expensive to use try-catch blocks even if an exception is never thrown?

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 Comment