Transient Fields and Java Serialization
Transient Fields and Java Serialization
The transient keyword is a modifier applied to instance variables in a class.
It specifies that the variable is not part of the persistent state of the object and thus never saved during serialization.
You can use the transient keyword to describe temporary variables,
or variables that contain local information
such as a process ID or a time lapse.
Comments
Post a Comment