|
Java™ by example!
|
|
|
What is the purpose of the volatile keyword?
purpose of this keyword is that if you have a few threads that are running at the same time that can modify a value of a variable you can protect it by placing that value to be volatile. So the value cannot be changed simultaniosly by 2 running threads. Good Luck
Further Information
Author of answer: Val
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|