title: Java Generics - implements and extends
body: <p>I am trying to write something like</p>
  
  <pre><code>public class A implements B&lt;T implements C&gt; {}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public abstract class M&lt;I extends P&gt; extends R&lt;I extends P&gt; implements Q&lt;I extends P&gt; {}
  </code></pre>
  
  <p>but I am getting errors like Multiple markers and syntax error on token extends, expected. Please let me know what is the correct way of doing this.</p>