Java tutorial
public class Main { public static void main(String[] args) throws Exception { // returns the Class object for the class with the specified name Class cls = Class.forName("java.lang.ClassLoader"); // returns the name and package of the class System.out.println("Class found = " + cls.getName()); System.out.println("Package = " + cls.getPackage()); } }