Help the world stop coronavirus! Stay home!

Prev Next

Java / volatile

volatile keyword.

volatile keyword indicates that a variable's value will be modified by different threads.

When a java variable is declared volatile,

  • The value of that varilable will not be cached thread-locally, all read/write will be directed to the "main memory".
  • Access to the variable is synchronized on itself.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Java ThreadLocal

Comments & Discussions