title: Writing long and double is not atomic in Java?
body: <blockquote>
    <p>Reading and writing of a single variable is atomic (language guarantee!), unless the variable is of type long or double. </p>
  </blockquote>
  
  <p>I was reading a course's slides and I found that written. The class was about concurrency.</p>
  
  <p>Can anyone explain to me why writing a long or a double is not an atomic operation? It really took me by surprise.</p>