LMAX Group interview question

Describe how CAS can be used in java?