Create new class from a Variable in Java
<p>Is there a way to create a new class from a String variable in Java?</p>

<pre><code>String className = "Class1";
//pseudocode follows
Object xyz = new className(param1, param2);
</code></pre>

<p>Also, if possible does the resulting object have to be of type Object?</p>

<p>There may be a better way, but I want to be able to retrieve values from an XML file, then create the classes named after those strings. Each of classes all implement the same interface and are derived from the same parent class, so I would then be able to call a particular method in that class. </p>
