Answer the question
In order to leave comments, you need to log in
Explain the meaning of volatile identifier in Java?
Gentlemen, I can not understand the meaning of the volatile identifier, please explain in simple words. The following is not clear, if several threads use 1 object and the changed data is often stored in the cache, then wouldn't it be easier to assign the static modifier to the object? Thanks in advance.
Answer the question
In order to leave comments, you need to log in
wouldn't it be easier to assign the static modifier to the object?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question