Discharging java ArrayList : <p>I`ve two methods to discharge an ArrayList in java:</p>

<p>1- re-assign the list object.</p>

<pre><code>list = new ArrayList();
</code></pre>

<p>2- using clear method.</p>

<pre><code>list.clear();
</code></pre>

<p>Which is better?</p>
