title: Java Generics create list of objects which extends class A and implements interface B
body: <p>Consider this scenario</p>
  
  <pre><code>public abstract class A{
  
  }
  
  public interface B{
  
  }
  </code></pre>
  
  <p>How would I create a List of objects which extend A and implement B?</p>
  
  <pre><code>List&lt;? extends A implements B&gt; list = new List();
  </code></pre>
  
  <p>Thanks</p>