+ 1
Difference between the transient and volatile variable in Java?
Difference between the transient and volatile variable in Java?
1 Respuesta
+ 4
Akshay Biradar
Both transient and volatile modifiers are completely different to each other. Main difference between transient vs volatile variable is that transient variables are not serialized during Serialization process in Java while volatile variables are used to provide alternative synchronization in Java.
source:
http://www.java67.com/2012/11/difference-between-transient-vs-volatile-modifier-variable-java.html?m=1
I hope I was helpful