Once the reference to the String has been lost there is no way to recall it.
However, since the String is still there, when you assign a new (identical) String,
Java goes to the String pool, pulls it out , and uses it rather than creating a new identical String.