1import java.lang.reflect.*;
2
3Param1Type param1;
4Param2Type param2;
5String className = "Class1";
6Class cl = Class.forName(className);
7Constructor con = cl.getConstructor(Param1Type.class, Param2Type.class);
8Object xyz = con.newInstance(param1, param2);