title: Java difference between AtomicInteger addAndGet() and getAndAdd()?
body: <p>What is the difference between the <code>addAndGet</code> and <code>getAndAdd</code> methods of <code>Atomic*</code> classes like <code>AtomicInteger</code> or <code>AtomicLong</code>?</p>
  
  <p>The Javadoc doesn't list any difference:</p>
  
  <blockquote>
    <p><code>addAndGet(long delta)</code>
    Atomically adds the given value to the current value.</p>
    
    <p><code>getAndAdd(long delta)</code>
    Atomically adds the given value to the current value.</p>
  </blockquote>