>>>>> "Scott" == Scott Barr <[EMAIL PROTECTED]> writes:

    Scott> Hi David

    Scott> Is that all unique occurences of each unique String within the JVM? If
    Scott> so, there is still creation, and garbage disposal once the String goes
    Scott> out of scope, yes?

If we're just talking literals, they never go out of scope.  All references to
the same string literal all refer to the same object, and they're never
collected.  You can create a String object that contains the same contents, but
those are normal collectable objects, unless they're manually interned, which
is another story.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to