title: what is the difference between getType() and getClass() in java?
body: <p>I used to use <code>getType()</code> in c# and I see it exist in Java as well.</p>
  
  <p>when should I use <code>getType()</code> and when <code>getClass()</code>? </p>