import java.lang.reflect.Field; public class Main { public static void main(String[] argv) throws Exception { Class cls = java.awt.Point.class; Field[] fields = cls.getFields(); for (int i = 0; i < fields.length; i++) { Class type = fields[i].getType(); System.out.println(fields[i]); } } }