title: How do you know a variable type in java?
body: <p>Let's say I declare a variable:</p>
  
  <pre><code>String a = "test";
  </code></pre>
  
  <p>And I want to know what type it is, i.e., the output should be <code>java.lang.String</code> How do I do this?</p>