title: How to test if one java class extends another at runtime?
body: <p>How to I test if <code>a</code> is a subclass of <code>b</code>?</p>
  
  <pre><code>Class&lt;?&gt; a = A.class;
  Class&lt;?&gt; b = B.class;
  </code></pre>