Java tutorial
import java.lang.reflect.Constructor; public class Main { public static void main(String[] args) throws ClassNotFoundException { Class c = Class.forName("java.lang.String"); Constructor[] constructors = c.getDeclaredConstructors(); for (int i = 0; i < constructors.length; i++) { System.out.println(constructors[i].getDeclaringClass()); } } }