Transient variables are not serialized because that is the definition of transient. Transient doesn't do anything except for excluding the variable from serialization. It is not stored somewhere else then "normal" objects.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
posted 7 years ago
That is the definition of a transient variable. Its used when you dont want a variable value to be persisted as part of object serialisation.