Salesforce Interview Question

What is the purpose of the volatile keyword in Java?