System.arrayCopy() question
<p>System.arrayCopy() is a shallow copy method. </p>

<p>For primitvie type array it will copy the values from one array to another:</p>

<pre><code>int[] a = new int[]{1,2};
int[] b = new int[2];
System.arrayCopy(a, 0, b, 0, 2);
</code></pre>

<p><strong>b</strong> will be {1,2} now. Changes in <strong>a</strong> will not affect <strong>b</strong>.</p>

<p>For object type array, it will copy the references of object from one to another:</p>

<pre><code>MyObject[] a = new MyObject[] { new MyObject(1), new MyObject(2)};
MyObject[] b = new MyObject[2];
System.arrayCopy(a, 0, b, 0, 2);
</code></pre>

<p><strong>b</strong> will contain reference of  <code>new MyObject(1)</code>, <code>new MyObject(2)</code> now. But if any changes of <code>new MyObject(1)</code> in <strong>a</strong>, it will affect <strong>b</strong> as well.</p>

<p>above statements are correct or not?</p>
