posted 20 years ago
Assuming that you aren't maintaining a reference to the ArrayList somewhere else in your program, if you do null it out, then it will be eligible for garbage collection, and will be garbage collected eventually.
At that point, if you also don't have references to the items in the ArrayList, they will be eligible for garbage collection also.
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED