title: What is the importance of the volatile keyword with synchronized java blocks?
body: <p>Please, could anyone tell me what is the volatile keyword in java,it's main function,how to use it with synchronized block,and what will happen  if we totally remove it from the block?</p>