Answers

Question and Answer:

  Home  Java Software Engineer

⟩ Explain me when do you use volatile variables?

When a member variable is accessed by multiple threads and want the value of a volatile field to be visible to all readers (other threads in particular) after a write operation completes on it.

 137 views

More Questions for you: