title: Java instanceof with class name
body: <p>I am just curious to ask this, maybe it is quite meaningless.</p>
  
  <p>When we are using instanceof in java, like:</p>
  
  <pre><code>if (a instanceof Parent){ //"Parent" here is a parent class of "a"
  }
  </code></pre>
  
  <p>why we can't use like below:</p>
  
  <pre><code>if (a instanceof Parent.class){
  }
  </code></pre>
  
  <p>Does the second 'instanceof' make more sense from the view of strict programming? What is the difference between "Parent" and "Parent.class"?</p>