Skip to content

Glossary: Java Beyond the Basics

AtomicInteger

An integer whose updates, such as incrementAndGet(), can't be interrupted by other threads, which prevents lost counts in a race condition.

Where the book teaches it

Related terms

Race conditionsynchronizedConcurrentHashMap