title: How do I use getConstructor(params).newInstance(args)?
body: <p>This could well be a stupid question, but I'm new to Java, so...</p>
  
  <p>I've currently got some code where currently this is being used
  <code>clazz.asSubclass(asSubclassOfClass).getConstructor().newInstance()</code></p>
  
  <p>I need to pass some arguments to the contructort so I want to change it to: <code>clazz.asSubclass(asSubclassOfClass).getConstructor(params).newInstance(args)</code> </p>
  
  <p>What I don't understand is what I need to pass in as <strong>params</strong> and what I need to pass in as <strong>args</strong>. </p>
  
  <p>Let's say I wanted to pass in a String "howdy" and some object of type XYZ called XyzObj in. How would I specify that? WHat would I pass as params and what would I pass as args?</p>