This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
No, they aren't. All types of object are garbage-collected similarly. Strings have a sort of constant pool for those which exist as literals; since they are in the actual code, they remain "accessible" until the classes they are used in are unloaded (and, I think, until their class loaders are unloaded too).
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
4
posted
0
About arrays: if you are feeling brave go through the Java Language Specification, here.