Why use finally

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 such as AssertionError or OutOfMemoryError. the try-block completes abruptly using a control flow statement such a continue, break or return the catch-block completes abruptly (by throwing any throwable, or using a control flow …

Read more