I want to write applications that don't leak, so I am looking for best practice to avoid this.
I always close my resultSets and Connections. But I usually don't nullify my objects when finished with them and leave them to GC to clean up.
Is this bad practice? should I be nullifying my ArrayLists and Interators when I am done with them?
Also is there other ways to deal with objects to keep memory intact?