Hi all,
I've basic knowledge of
java and preparing for
SCJP, I'm referring the book by kathy sierra.
I've question regarding transient and volatile variables in java. Please let me know if my understanding is correct:
Transient variables wont be stored/persisted in database, like other instance variables do. Is this correct?
Is 'transient' used only during serialization or in any other scenario ?
I dont understand the concept of 'volatile' variables. Please help with my queries or direct me if these things are discussed in other threads..
Thanks
-Uday