[Solved] is it good practice to call a method from Exception block in java?
This is bad practice for two reasons: Normally, cleanup kind of actions … should also be executed when your code doesn’t fail; right? But if you only put it into the catch … cleanup isn’t called when no exception is thrown! Beyond that: the above will not call cleanup() for subclasses of Throwable that are … Read more