Science, asked by simrantaneja1327, 1 year ago

What is a transient variables in java?

Answers

Answered by Anonymous
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