title: What causes "incompatible conditional operand" when using instanceof in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2551337/instanceof-incompatible-conditional-operand-types">instanceof - incompatible conditional operand types</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to use below code and getting compilation error.</p>
  
  <pre><code>Class&lt;A&gt; clas; //this is passed from service 
  clas instanceof SomeClass
  </code></pre>
  
  <p>This gives ma the following compilation error:</p>
  
  <blockquote>
    <p>incompatible conditional operand types Class and SomeClass</p>
  </blockquote>
  
  <p>Please help me!</p>