title: [Ljava.lang.Object; cannot be cast to [Ljava.util.ArrayList;
body: <p>In my java code, I try to build a list of arraylist, my code is as follows,</p>
  
  <pre><code>private ArrayList&lt;Integer&gt;[] listoflist;
  listoflist = (ArrayList&lt;Integer&gt;[]) new Object[875715];
  </code></pre>
  
  <p>However, when I compile the code, the compiler keeps saying that </p>
  
  <blockquote>
    <blockquote>
      <p>[Ljava.lang.Object; cannot be cast to [Ljava.util.ArrayList;</p>
    </blockquote>
  </blockquote>
  
  <p>Can I ask why I can not cast Object[] to ArrayList[]?</p>