Infosys interview question

Volatile and synchronized keywords in Java