title: passing class type as parameter and creating instance of it
body: <p>I want to pass a class type as a parameter to a method in java.all of which have the same constructor parameter.and create an instance of that Class in that method.is this possible?</p>
  
  <p><strong>Update after some years</strong>: do checkout Sapnesh Naik's answer to this, it seems to be the most up-to-date. I have not accepted is as an answer as I do not have a running java stack.<br>
  P.S: Give me a shout if you can verify.</p>