Thursday 15 August 2013

loops - Java, make sure objects are being deleted when removed from arrayList -


Let's say I'm removing the "dead" object called "anime".

Use something like this:

 for  (int i = 0; i   

The object is removed after being removed from the ArrayList? Or "this"? I'm primarily doing C ++ code and garbage collection confuses me.

By any means can I see whether the objects are being removed or not by the garbage collector?

Thanks

No comments:

Post a Comment