title: Class name of type parameters in java?
body: <p>Assuming T as a class type parameter, why cannot I use T.class</p>
  
  <p>I was writing a function that download a page and parses it according to a passed class.
  For parsing, I use another function whose signature is : <code>ParseObject::parse(Class&lt;T&gt; classname)</code></p>
  
  <pre><code>&lt;T&gt; void downloadParse(){
    ParseObject obj;
    obj.parse(T.class); //&lt;--- why compiler error here?? (whereas something like Integer.class is allowed)
  }
  </code></pre>