+ 1

Can we serialize transient marked variable in Java?

Assume we are having a transient variable. In Java transient modifier makes sure that the marked object cannot be serialized. If in case you want to serialize transient marked variable, is it possible? If so how.

21st Jul 2018, 2:24 PM
Maruti Gokarn
Maruti Gokarn - avatar
1 Antwort
0
Tobias Hallmans With transient modifier also we can do serialization by using externalization.
27th Jul 2018, 5:30 PM
Maruti Gokarn
Maruti Gokarn - avatar