Class
Class cls01 = User.
class;
Class cls02 = user.getClass();
Class cls03 = Class.forName(path);
cls01.getName package
基本类型 9=8+1
--------------------------------------------------------
Field
Field f01 = cls.getField("uname");
Field f02 = cls.getDeclearedField("pwd");
field[] fs = cls.getFields();
f01.set(obj,value);
f01.get(obj);
f.get(cls);
--------------------------------------------------------
Method
Method m = cls.getMethod("sayHello",int.class,String.class);
m.invoke(obj,12345,"12345");
m1.invoke(cls);
--------------------------------------------------------
constructor
Constructor con = cls.getConstructor(String.class);
Object obj = con.newInstance(null);