title: Java Class Dynamically with Constructor parameter
body: <p>I have to create a class dynamically but I want to use class constructor passing parameter.</p>
  
  <p>Currently my code looks like </p>
  
  <pre><code>Class&lt;HsaInterface&gt; _tempClass = (Class&lt;HsaInterface&gt;) Class.forName(hsaClass);
          _tempClass.getDeclaredConstructor(String.class);
          HsaInterface hsaAdapter = _tempClass.newInstance();
          hsaAdapter.executeRequestTxn(txnData);
  </code></pre>
  
  <p>How can I call the constructor with the parameter ? </p>