发布网友 发布时间:2022-05-26 00:04
共2个回答
热心网友 时间:2024-07-22 17:04
public Object get(Object obj) throws IllegalArgumentException, IllegalAccessExceptionReturns the value of the field represented by this
Field, on the specified object. The value is automatically wrapped
in an object if it has a primitive type.
The underlying field's value is obtained as follows:
If the underlying field is a static field, the obj argument is
ignored; it may be null.
API中说明如果是静态字段,则get的参数会被忽略。所以上面的代码应该是专门获取该类中的静态字段用的。
热心网友 时间:2024-07-22 17:04
看API,没见过,但是API里肯定有讲