does try/catch affects performance if no exception thrown in try block?
how about try/catch/finally?
does try/catch affects performance if no exception thrown in try block? how about try/catch/finally
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Neither
try/catchnortry/catch/finallyaffects performance to any significant degree. Exceptions being created do affect performance, of course (and that is whether they are caught, or not)Do try/catch blocks hurt performance when exceptions are not thrown?