title: Generic arrays of parametrized ArrayLists in java?
body: <p>I am new to Java, so I am not aware of the nitty gritties.<br>
  Why can't I create generic array of parametrized ArrayList?<br>
  Instead I have to write,  </p>
  
  <pre><code>ArrayList&lt;String&gt;[] alist = new ArrayList[10]; 
  </code></pre>
  
  <p>or I have to create List of ArrayLists.<br>
  Aren't arrays supposed to be more efficient than ArrayLists? Then why doesn't Java allow it?<br>
  Also, what is the difference between following two lines.</p>
  
  <pre><code>ArrayList&lt;String&gt;[] alist = new ArrayList[10];  
  ArrayList&lt;String&gt;[] alist = new ArrayList&lt;?&gt;[10];  
  </code></pre>