title: Java int concurrency ++int equivalent to AtomicInteger.incrementAndGet()?
body: <p>Are these two equivalent? In other words, are the ++ and -- operators atomic?</p>
  
  <pre><code>int i = 0;
  return ++i;
  
  AtomicInteger ai = new AtomicInteger(0);
  return ai.incrementAndGet();
  </code></pre>