Java tutorial
import java.awt.Point; import java.lang.reflect.Constructor; public class Main { public static void main(String[] argv) throws Exception { Constructor con = Point.class.getConstructor(new Class[] { int.class, int.class }); Point obj = (Point) con.newInstance(new Object[] { new Integer(1), new Integer(1) }); } }