class ClassInfoDemo2 { public static void main(String[] args) { Class c = String.class; System.out.println(c.getName()); c = ClassInfoDemo2.class; System.out.println(c.getName()); c = double.class; System.out.println(c.getName()); c = float[].class; System.out.println(c.getName()); } }