Originally posted by marc weber: If you have an instance of the parameter type, then you can call getClass() on that instance.
That's not exactly the same, as the instance could also be of a subclass.
And to answer the original question: no, this is not possible in Java.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus