If you want to free resources at a specific time, do not depend on external code, such as a servlet container or JVM, to do this. Make your resource allocation and allocation as clear as possible. Disgusting errors may result from external code to clear after you.
source
share