# Volatile Variable

A field whose reads and writes have special cross-thread visibility guarantees.

## What is **Volatile Variable** in Java?

**Volatile Variable** — A field whose reads and writes have special cross-thread visibility guarantees.

```java
class Worker {
    volatile boolean running = true;
}
```

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/volatile-variable
