How to get Class from type
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/182636/how-to-determine-the-class-of-a-generic-type">How to determine the class of a generic type?</a>  </p>
</blockquote>



<p>Given the code like this:</p>

<pre><code>   MyClass&lt;SomeOtherClass&gt; = new MyClass&lt;SomeOtherClass&gt;();

    public class MyClass&lt;T&gt; implements IMyClass&lt;T&gt; 
    {
       public MyClass()
       {
          //I need to get class of SomeOtherClass
       }
    }
</code></pre>

<p>Is it possbile to do something like this in Java?</p>

<p><strong>Updated for more clarity</strong></p>
