array class is transient by default ? {true,false} ,and why false if false
1
Expert's answer
2016-11-01T16:15:09-0400
'Transient' marks a member variable not to be serialized when it is persisted to a byte stream. Transient fields are not transferred but ignored when an instance is being serialized. That is, only a member variable can be transient/non-transient, and it is not applicable to a class itself.
If an instance of an array class is a member variable of some other class, it is by default not transient, since a member variable can only be transient only if it was specifically declared as such. The answer is false.
Comments
Leave a comment