title: What dose elements of String[] actually store? Reference to a String or String itself?
body: <pre><code>public class ClassNameHere {
     public static void main(String[] args) {
        String[] str = new String[2];
        str[0] = &quot;Hello&quot;;
        str[1] = &quot;World&quot;;
        String test = &quot;God!&quot;;
        str[1] = test;
        test = &quot;Guy!&quot;;
        System.out.println(str[1]);
     }
  }
  </code></pre>
  <p>I thought the result should be &quot;Guy!&quot; but actually is &quot;God!&quot;. Do the elements in the String[] contain references to Strings? Or just contain the content of Strings directly?</p>