title: Java - How Can I Check If A Class Is Inheriting From Some Class Or Interface?
body: <p>I need to check:</p>
  
  <pre><code>public static boolean check(Class&lt;?&gt; c, Class&lt;?&gt; d)
  {
      if (/* c inherits from d */)
          return true;
      else
          return false;
  }
  </code></pre>
  
  <p><strong>How can I do that ?</strong></p>
  
  <p>And is that possible without <code>c.newInstance()</code> ?
  <hr>
  The title was wrong at the first time. Now it's correct.</p>