getclass() vs .class
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2467970/whats-the-difference-between-calling-myclass-class-and-myclass-getclass">What’s the difference between calling MyClass.class and MyClass.getClass()</a>  </p>
</blockquote>



<p>Wanting to have a <code>Class&lt;T&gt;</code> object, Which is the difference between these two approaches?</p>

<pre><code>Test ob = new Test();

ob.getclass();
</code></pre>

<p>or</p>

<pre><code>Test.class
</code></pre>
