Class类的getDeclaredFields()与getFields()方法的区别? getDeclaredFields(): 获取所有本类自己声明的方法, 不能获取继承的方法 getFields(): 只能获取所有 public 声明的方法, 包括继承的方法 来一道刷了进BAT的面试题?