title: Java Generics -- Assigning a list of subclass to a list of superclass
body: <p>I have a basic question regarding assignment of a list of subclass to a list of superclass.</p>
  
  <p>So I have something like the following: </p>
  
  <pre><code>Class B extends A;
  
  List &lt;B&gt; bList = new ArrayList&lt;B&gt;();
  List &lt;A&gt; aList = bList; 
  </code></pre>
  
  <p>Why does this last assignment fail? Sorry for the newbie question</p>