Joe Soltzberg

28%
Flag icon
More seriously, it can result in the enclosing instance being retained when it would otherwise be eligible for garbage collection (Item 7). The resulting memory leak can be catastrophic. It is often difficult to detect because the reference is invisible.
Effective Java
Rate this book
Clear rating
Open Preview