(object instanceof C) what is the type of C?
<p>I'm try to do something like this</p>

<pre><code>public void method(Object obj, Class objClass) {
    if(obj instanceof objClass) {
        //do something
    }
}
</code></pre>

<p>I want to pass Class object or class name and test if that is and instanceof of that.
This don't work, anyone know how to do this?
Thanks</p>
