title: is there a way to check instanceof primitives variables java
body: <p>We can know object reference is-a test by using instanceof operator. But is there any operator to check primitive types. For example:</p>
  
  <pre><code>byte b = 10;
  </code></pre>
  
  <p>Now if I only consider the value <code>10</code>. Is there any way I could find out that it was declared as a byte?</p>