title: Why primitive datatypes are not allowed in java.util.ArrayList?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2504959/storing-primitive-values-in-a-java-collection">Storing primitive values in a Java collection?</a>  </p>
  </blockquote>
  
  
  
  <p>ArrayList accepts only reference types as its element, not primitive datatypes.
  When trying to do so it produces a compile time error. </p>
  
  <p>What is the concept behind this? It seems like a limitation, is it not?</p>