Question: java is atomic thread safe?
Answer: Yes; all of the methods on the Atomic* classes are thread-safe. The difference between decrementAndGet() and getAndDecrement() is which value it returns. Saying " AtomicInteger is thread-safe" means that each thread calling for example value. No other guarantees.