All variables (that are not primitives) in Java are pointers. So as a general rule, collections won't make copies (clones) of objects added to them.
On 3/9/06, Sparky <[EMAIL PROTECTED]> wrote: > > Thanks for that, I remember the remove references and wait for GC to > come and do the dirtywork, but I'm still curious to know if pushing an > object on to an array makes a copy, and if so, how does it know to do > that? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum -~----------~----~----~----~------~----~------~--~---
