Here you can find the source of getConstructor(String className, Class>... argClasses)
@SuppressWarnings("unchecked") public static <T> Constructor<? extends T> getConstructor(String className, Class<?>... argClasses) throws ReflectiveOperationException
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Constructor; public class Main { @SuppressWarnings("unchecked") public static <T> Constructor<? extends T> getConstructor(String className, Class<?>... argClasses) throws ReflectiveOperationException { return ((Class<? extends T>) Class.forName(className)).getConstructor(argClasses); }/*from w w w .j a v a2 s .c o m*/ }