What is a transient variables in java?
Answers
Answered by
0
The rule is, when a variable is marked as transient, its object won't be serialized during serialization. A transient variableis a variable that may not be serialized. You use the transientkeyword to indicate to the Javavirtual machine that the indicatedvariable is not part of the persistent state of the object.
Similar questions