Java tutorial
public class Main { public static void main(String[] args) throws Exception { Class cls = Class.forName("Main"); ClassLoader cLoader = cls.getClassLoader(); Class cls2 = Class.forName("java.lang.Thread", true, cLoader); System.out.println("Class = " + cls.getName()); System.out.println("Class = " + cls2.getName()); } }