«volatile» is a keyword used when a variable can be used by many threads. It allows an asynchronous access to this variable. By using this keyword the JVM refreshes, after each use, the value of this variable, the value is updated and every thread gets the most recent value. That can be useful when we manage a workflow process for example.
See also :
- Basic Concepts in Java
- What is Class, interface, and Object in Java?
- public, private, and protected in Java
- What does static mean in Java?
- What does final mean in Java?
- What does transient mean in Java?
- Which are types of JDBC drivers?
- Cite three objects included in the JSP page
- What is servlet, what is jsp?
- What's difference between directive and action?
- Which are the struts tagLibs?
- What is Hibernate?
- What's JEE and which are their APIs?