title: Can I create any object of ArrayList in a Queue?
body: <p>I am trying to do this:</p>
  
  <pre><code>Queue&lt;Integer&gt; Q = new ArrayList&lt;Integer&gt;();
  </code></pre>
  
  <p>But My IDE gives me error. </p>
  
  <p>Can any one please tell me, Why I can't create an object of <code>ArrayList</code> in a class of queue?</p>