title: JShell How to find the type of Variable or Result
body: <p>How to find the type of a variable or Expression Result in JShell.</p>
  
  <p>Was experimenting Bitwise Operators in Java</p>
  
  <pre><code>jshell&gt; byte b=5&lt;&lt;-1;
  |  Error:
  |  incompatible types: possible lossy conversion from int to byte
  |  byte b=5&lt;&lt;-1;
  |         ^---^
  
  jshell&gt; 5&lt;&lt;-1
  $2 ==&gt; -2147483648
  
  jshell&gt;
  </code></pre>
  
  <p>Is there an alternative like Python type(5&lt;&lt;-1) to find the result type of expression or variable in Jshell.</p>