怪我咯2017-04-18 09:34:25
If there is xyz
this object in your string constant pool, one object is created
If not, two objects are created
ringa_lee2017-04-18 09:34:25
First check if there is 'xyz' in the constant pool. If not, create it.
Then create a new String whose reference points to xyz in the constant pool.
So there are 1 or 2.