Here you can find the source of getConstructor(String cls_name, Class>[] param_cls)
public static Constructor<?> getConstructor(String cls_name, Class<?>[] param_cls)
//package com.java2s; import java.lang.reflect.Constructor; public class Main { public static Constructor<?> getConstructor(String cls_name, Class<?>[] param_cls) { try {//from w w w. j a v a2 s . com Class<?> c = Class.forName(cls_name); return c.getConstructor(param_cls); } catch (Exception e) { return null; } } }