title: Java: instanceof Generic
body: <p>Isn't there any way to find the class-type of a generic?</p>
  
  <pre><code>if (T instanceof String) {
      // do something...
  }
  </code></pre>
  
  <p>The above definitely does not compile.</p>