Skip to content

Tag: try-catch-finally

Why use finally

I never properly understood the use of the finally statement. Can anyone tell me what the difference is between: on the one hand and: On the other Answer They differ if the try-block completes by throwing a java.lang.Throwable that is not a java.lang.Exception, for instance because it is a java.lang.Error suc…