Possible Duplicates:
Difference between volatile and synchronized in JAVA (j2me)
Difference between synchronization of field reads and volatile
According to java documentations, I found volatile works like synchronized about objects. I was wondering if volatile is faster than synchronized or not? or it would cause any side effect to use volatile instead of synchronized keyword?