answersLogoWhite

0

It is used to alert the compiler that the value of a variable may be modified by more than one thread. As a result, the Java Virtual Machine is not allowed to do certain optimizations, which are problematic in such cases.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is volatile thread?

Threads are not volatile. The volatile is a keyword that is used while having multiple threads in a Java Program. This keyword is used when multiple threads access a particular variable but still it is not mandatory to synchronize or prevent access to that variable.


What is the Java grammar?

"Java grammar" is the way of writing a program with correct syntax of various commands used in java language.


Can you use pointers in java?

Java does not support Pointers and hence you cannot use it in Java.


What technologies link to Java?

Java is exclusive to surfing the web. Some web sites use Java to embed videos, others use Java for advertisements.


What you use in case of pointer in java?

Java does not have pointers


Does Java Script use the same compiler as Java?

No


How can you use the word volatile in a sentence?

The crowd became volatile when the police arrived at the scene.


What is java 7?

Java 7 is the most current version of Java. Many movies and games use Java.


What is the Full form of JAVA whether Javanese Architecture virutal Accerelation is correct or not?

JAVA stands for - Just Another Virtual ArchitectureThis is according to what I was told in JAVA class.


What is a volatile impurity?

A volatile impurity is an impurity that can evaporate easily. Pharmacies use organic volatile impurities to manufacture certain types of drugs.


Which is the best Book to understand JAVA in short?

You can use Head First Java or Java Complete Reference to learn Java.


Do you have to use java?

Not usually. There are numerous languages out there with similar functionality. The only time you must use Java is if your employer or client demands that a project be done in Java, or a particular platform requires the use of Java, such as Android OS.