"Volatile" keyword ensures the following

  1. the value keeps refreshing after some intervals of time

  2. the value is made thread safe automatically

  3. the value is not cached by the compiler for the purpose of optimization

  4. to make the value of a variable to be refreshed, everytime it is accessed


Correct Option: C

Find more quizzes: