title: Why would someone use Collections.emptyList in java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5552258/collections-emptylist-vs-new-instance">Collections.emptyList() vs. new instance</a>  </p>
  </blockquote>
  
  
  
  <p>I was trying to understand the difference between create a new instance of a list using:</p>
  
  <pre><code>new ArrayList&lt;X&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Collections.emptyList();
  </code></pre>
  
  <p>As I understood, the later  returns an immutable list. That means that it is not possible to add,delete, or modify it.
  I want to know why one would create and immutable emptyList ? what is the use?
  thanks</p>