Here you can find the source of getConstructor(Class> clazz, Class>... parameterTypes)
public static Constructor<?> getConstructor(Class<?> clazz, Class<?>... parameterTypes)
//package com.java2s; import java.lang.reflect.*; public class Main { public static Constructor<?> getConstructor(Class<?> clazz, Class<?>... parameterTypes) { try {//from w w w . j ava2 s. com return clazz.getDeclaredConstructor(parameterTypes); } catch (Exception e) { return null; } } }