
- Forum
- Programming Talk
- Java
- keyword
keyword
This is a discussion on keyword within the Java forums, part of the Programming Talk category; what is use of volatile keyword??...
-
keyword
what is use of volatile keyword??
-
When we try to access a field, VM Optimizes field access by temporary result in local variable
Volatile is useful when we want to access a field with multiple threads without synchronizing.
When we use Volatile keyword, Above mentioned VM's optimization feature is disabled and the temporary results will not be stored in local variable.
-
can u gv a small example
When we try to access a field, VM Optimizes field access by temporary result in local variable
Volatile is useful when we want to access a field with multiple threads without synchronizing.
When we use Volatile keyword, Above mentioned VM's optimization feature is disabled and the temporary results will not be stored in local variable.
-
Sponsored Ads
«
tell me a good bok to study jsp servlet and ejb
|
Difference between Interface and Abstract Class
»

Reply With Quote






