posted 20 years ago
Hi !
Volatile:
A variable is defined as volatile, when its value keep on changing frequently.Also its used in shared memory application.The volatile varaible cant be cached in a temporary register , so each time the the machine should go to the location & fetch the value of volatile.
transient:
A variable which is the absent at the persistence state of the object is defined as transient type .
By
P.Manivannan,
Network Computing & System Engg Group,
India.