Can a transient field in a class be obtained using reflection
问题 Can a transient field in a class be obtained using reflection? (using getDeclaredField(..) ) 回答1: Yes , It is a normal field. You can check whether it is transient by: Modifier.isTransient(field.getModifiers()); transient : A keyword in the Java programming language that indicates that a field is not part of the serialized form of an object. When an object is serialized, the values of its transient fields are not included in the serial representation, while the values of its non-transient