Get the class By way of a string
public class Main { public static void main(String[] argv) throws Exception { Object object = new String(); try { Class cls = Class.forName("java.lang.String"); } catch (ClassNotFoundException e) { } } }