Get the class By way of .class
public class Main { public static void main(String[] argv) throws Exception { Object object = new String(); Class cls = java.lang.String.class; } }