Programming Tutorials

Comment on Tutorial - Transient vs Volatile modifiers in Java By Reema sen



Comment Added by : Manoj Yadav

Comment Added at : 2011-11-23 09:33:23

Comment on Tutorial : Transient vs Volatile modifiers in Java By Reema sen
Transient: The transient modifier applies to variables only and it is not stored as part of its object’s Persistent state. Transient variables are not serialized. Volatile: Volatile modifier applies to variables only and it tells the compiler that the variable modified by volatile can be changed unexpectedly by other parts of the program.....
For more details please check this link,
http://www.mindstick.com/Interview/1086/What%20are%20Transient%20and%20Volatile%20Modifiers


View Tutorial