title: How to create instance of a class with the parameters in the constructor using reflection?
body: <p>for example:</p>
  
  <pre><code>public class Test {
  
      public static void main(String[] args) throws Exception {
          Car c= (Car) Class.forName("Car").newInstance();
          System.out.println(c.getName());
      }
  }
  
  class Car {
      String name = "Default Car";
      String getName(){return this.name;}
  }
  </code></pre>
  
  <p>clear code.</p>
  
  <p>But, if I add constructor with params, some like this:</p>
  
  <pre><code>public Car(String name)
  {this.name = name;}
  </code></pre>
  
  <p>I see: <code>java.lang.InstantiationException</code></p>
  
  <p>So, no I don't know, how pass constructor with params.</p>
  
  <p>Please, help.</p>