title: Concatenate Array in Java by Reference
body: <p>I would like to concatenate an array in Java <strong>by reference</strong> like so.</p>
  
  <pre><code>int[] a = new int[] {1,2,3};
  int[] b = new int[] {4,5,6};
  int[] ab = concatArrayByReference(a,b); //Function to be defined
  </code></pre>
  
  <p>now if I do</p>
  
  <pre><code>a[2] = 90;
  </code></pre>
  
  <p>ab should be equal to {1,2,<strong>90</strong>,4,5,6}</p>
  
  <p>Is this possible in Java, and what about splitting an array by reference?</p>
  
  <p>I want this mostly for performance reasons, I would like to avoid copying the two extremely big arrays each time I concatenate them.</p>
  
  <p>Edit: it seems it is not possible in Java, then how would I go about making a high performance implementation of <strong>List</strong> to make this possible?</p>