On pg 429 in the Sierra/Bates Study Guide for
Java 6 cert (diagram):
Step 1: shows the ref var "s" being stored on the heap as "abc"---got it
Step 2: indicates both ref vars, s2 and s refer to the same object on the heap ("abc")--got it
Step 3: indicates s2 refers to the "abc" object on the heap and s is a deleted ref to "abc" and "abcdef".
Step 3 is where I am running into trouble. If "def" as never assigned a ref variable, then why does it say that s is a deleted ref to "abcdef"? I am understanding the purpose of the appending of ("def") in this example is
only creating the object and not assigning a reference. TIA