Multiple choice

Which keyword is used for a variable, which will change the value irrespective of the thread that is being called?

  1. Transient

  2. Volatile

  3. Synchronized

  4. Native

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The answer is correct. This keyword is used for any variable when the value needs to be changed irrespective of the thread being called.