title: T does not understand `java.lang.reflect.Type`or java.lang.Class<T>
body: <p>I want my <code>T</code> type to be instance of <code>java.lang.reflect.Type</code> interface or <code>java.lang.Class&lt;T&gt;</code></p>
  
  <p>I have created sample code like below</p>
  
  <pre><code>public class Car&lt;T extends Type&gt; {
  private T t;
  public Car(T t) {
      this.t = t;
  }
  public static void main(String[] args) {
      Car&lt;String.class&gt; car = new Car(String.class);//Error String.class
  }
  }
  </code></pre>
  
  <p><strong>I know above in above example I can use <code>Class&lt;T&gt;</code> instead of using <code>T</code></strong>. I wanted to know if there is any way in which <code>T</code> can be made to understand that it is of <code>Type</code> or <code>Class</code>?</p>