Memory Management
Posted: 13 Feb 2011, 05:55
I know java has a garbage collector, but i don't really know how it behaves;
For example if i have an SFSObject A that contains an SFSObject B inside it, and a String "Hello" inside B, If i do:
(we assume "key of B" is the index of B)
Is "Hello" still somewhere inside the Memory? Or will the garbage collector remove it since it has no link?
Thank you,
smilefr
For example if i have an SFSObject A that contains an SFSObject B inside it, and a String "Hello" inside B, If i do:
(we assume "key of B" is the index of B)
Code: Select all
A.removeElement("Key of B")Thank you,
smilefr