Get the name of a primitive type
public class Main { public static void main(String[] argv) throws Exception { String name = int.class.getName(); // int System.out.println(name); } }