If this
was
then will return as string objects reside in a pool. When ever a string object is to be created, string pool is checked for an existing object of same value, if exists the reference is assigned to existing object else a new object will be created and the reference assigned.
P.S. Please correct if something is wrong.