Java / Variable
What is transient variable in Java?
Transient variable cannot be serialized.
For example if a variable is declared as transient in a class implementing Serializable interface and the class is persisted to an ObjectStream, the value of the variable is ignoerd and not written to the stream. When the class is retrieved from the ObjectStream the value of the variable becomes null.
More Related questions...