B2C2 interview question

Difference between Atomic and volatile in Java?