Here you can find the source of invoke(Constructor> constructor)
private static void invoke(Constructor<?> constructor)
//package com.java2s; //License from project: Apache License import java.lang.reflect.Constructor; public class Main { private static void invoke(Constructor<?> constructor) { constructor.setAccessible(true); try {/* w w w. jav a 2s. c om*/ constructor.newInstance(); } catch (Exception e) { throw new IllegalStateException("invoking constructor failed.", e); } } }