October 9, 2010 at 5:42 PM
Transient: The transient modifier applies to variable only,
and it is not stored as part of it's objects 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