title: InstantiationException for newInstance()
body: <p>Following works fine when the <code>className</code> is <code>"java.awt.Rectangle"</code> and <code>"java.lang.String"</code> etc. But it fails for <code>"java.lang.Integer"</code>, <code>"java.lang.Double"</code> giving <code>java.lang.InstantiationException</code> for <code>classDefinition.newInstance()</code>.</p>
  
  <pre><code>Class classs = Class.forName(className);
  Object object = classs.newInstance();
  </code></pre>
  
  <p>Is this a problem with the Wrapper classes or another?</p>
  
  <p><strong>Editted : Way to do this - credits should go to Jigar.</strong></p>
  
  <pre><code>Class       integerDefinition   = Class.forName("java.lang.Integer");
  Constructor intArgsConstructor  = integerDefinition.getConstructor(new Class[] {int.class});
  Object[]    intArgs             = new Object[] { new Integer(12) };
  Object      object              = intArgsConstructor.newInstance(intArgs);
  </code></pre>