title: What is AtomicLong in Java used for?
body: <p>Can some one explain what AtomicLong is used for?  For example, what's the difference in the below statements?</p>
  
  <pre><code>private Long transactionId;
  private AtomicLong transactionId;
  </code></pre>