regarding object recycling
<p>I have a question. What is wrong with regards to the below code:</p>

<pre><code>ArrayList tempList2 = new ArrayList();
tempList2 = getXYZ(tempList1, tempList2);

//method getXYZ
getXYZ(ArrayList tempList1, ArrayList tempList2) {

  //does some logic and adds objects into tempList2

  return tempList2;
}
</code></pre>

<p>The code will get executed but it seems by passing tempList2 to the getXYZ method argument, it is doing object recycling.</p>

<p>My question is, Is recycling the tempList2 arraylist object correct?</p>
