title: Array of object references
body: <p>In Java, let a custom object <code>o</code> is of type <code>CustomObject</code>. Then <code>CustomObject o2 = o;</code> would make a reference without copying the contents of <code>o</code> to <code>o2</code>. But will this behaviour remain for an array of <code>CustomObject</code>s:</p>
  
  <pre><code>CustomObject[] os = new CustomObject[2];
  os[1] = o;
  os[2] = o;
  </code></pre>
  
  <p>Will <code>os[1]</code> and <code>os[2]</code> be references or they will be direct copies of <code>o</code> and thus separate objects?</p>