Volatile modifier

Elaborate use of the volatile modifier?

E

Expert

Verified

It is used to identify variables whose values can’t be improved by the Java Virtual Machine(JVM), by caching a value for example. The volatile modifier is normally used for variables which can be accessed or modified by many independent threads and signifies that the value can modification without the synchronization.

   Related Questions in JAVA Programming

©TutorsGlobe All rights reserved 2022-2023.