public class Main { public static void main(String[] argv) throws Exception { Class cls = Void.TYPE; String name = cls.getName(); // void } }