title: Java instanceof operator
body: <p>Is there a valid class Type variable that can be used with the <code>instanceof</code> operator? For Example:</p>
  
  <pre><code>String s = "abc";
  
  Class&lt;?&gt; classType = String.class;
  
  if (s instanceof classType) {
      //do something
  }
  </code></pre>
  
  <p>as an alternative to this:</p>
  
  <pre><code>if (s.getClass() == classType) {
      //do something
  }
  </code></pre>
  
  <p>Would there be any performance benefit?</p>