Array assignment operation question
<p>If I have a piece of code like this:</p>

<pre><code>MyClass[] objArray = new MyClass[7];
//assign values to objArray
//do something here
//sometime later
MyClass newObj = new MyClass();
objArray[3] = newObj;
</code></pre>

<p>The last statement above will do the following:</p>

<ul>
<li>copy all the contents of the <code>newObj</code> to the space referred to by objArray[3]. </li>
</ul>

<h3>Questions</h3>

<ol>
<li><p>Am I right?</p></li>
<li><p>Shallow copy or deep copy?</p></li>
<li><p>If it is shallow copy, how can I make the deep copy possible? </p>

<pre><code>objArray[3] = newObj; 
</code></pre></li>
<li><p>Does this rule applies to other Java container types, such as Queue, List, ...?</p></li>
</ol>
