Is it bad practice to return from within a try catch finally block?

No, it’s not a bad practice. Putting return where it makes sense improves readability and maintainability and makes your code simpler to understand. You shouldn’t care as finally block will get executed if a return statement is encountered.

Leave a Comment