+ 2

What is a transient variable?

17th Sep 2016, 7:14 PM
Sadab Khan
Sadab Khan - avatar
2 Respuestas
+ 2
Transient variables are not serialized during serialization and initialized with default value during deserialization.
17th Sep 2016, 7:29 PM
Zen
Zen - avatar
+ 1
if some of the properties of a class are not required to be sarialized then the variables are marked as transient.
18th Sep 2016, 4:37 AM
Sadab Khan
Sadab Khan - avatar