Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Performance Tuning Guide

- Previous: Declare Constants as static final
- Next: Declare Method Arguments final

### Avoid Finalizers

Adding finalizers to code makes the garbage collector more expensive and unpredictable. The virtual machine does not guarantee the time at which finalizers are run. Finalizers may not always be executed, before the program exits. Releasing critical resources in `finalize()` methods may lead to unpredictable application behavior.

- Previous: Declare Constants as static final
- Next: Declare Method Arguments final

- © 2010, Oracle Corporation and/or its affiliates