原创 Java學習:反射

反射 使用反射可以直接獲取class字節碼文件中的類型、屬性、方法。 演示代碼: 新建一個名爲User的類作爲反射的操作對象 public class User { private int id; private Strin