title: Class vs Class<T> in Java
body: <p>Is there a difference between these two lines of code? Or is the first line just a shorthand way or writing the second line?</p>
  
  <pre><code>Class cls1 = Person.class;
  Class&lt;Person&gt; cls2 = Person.class;
  </code></pre>