I faced this question in an interview. Please help me to find the answer. The question was Can a transient variable be serialized in any way?
transient fields are not serialized by default.
However they can be serialized if
staticfields, though I have written such a library by mistake once)
Usually a field is made
transient to mean it shouldn't be serialized, though sometimes it might be because