# Synchronization

Coordinating threads so shared state is accessed safely and changes are visible.

## What is **Synchronization** in Java?

**Synchronization** — Coordinating threads so shared state is accessed safely and changes are visible.

```java
class Counter {
    private int value;

    synchronized void increment() {
        value++;
    }
}
```

Level: Master · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/master)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/synchronization
