String pool
Hello,String str = "foo";or String str = new String("foo");Both of these put the "foo" value into the string pool?
[149 byte] By [
xyzta] at [2007-11-26 18:22:00]

Yep, but the second form alse creates a second (superfluous) Stringobject. Both String objects still have their internal character array storedin the pool though.kind regards,Jos