---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 19 Edition"
java_version: 19
chapter: "Chapter 16. Definite Assignment"
section: "16.2.11"
heading: "16.2.11. do Statements"
parent: "16.2. Definite Assignment and Statements"
source: https://docs.oracle.com/javase/specs/jls/se19/html/jls-16.html#jls-16.2.11
id: "16.2.11"
url: https://jvm.obfuscated.software/jls/se19/16.2.11.html
raw: https://jvm.obfuscated.software/jls/se19/16.2.11.md
---

# 16.2.11. `do` Statements

- V is [un]assigned after `do S while (e);` ([§14.13](14.13.md)) iff V is [un]assigned after `e` when false and V is [un]assigned before every `break` statement for which the `do` statement is the break target.

- V is definitely assigned before S iff V is definitely assigned before the `do` statement.

- V is definitely unassigned before S iff all of the following are true:

  - V is definitely unassigned before the `do` statement.
  - Assuming V is definitely unassigned before S, V is definitely unassigned after `e` when true.

- V is [un]assigned before `e` iff V is [un]assigned after S and V is [un]assigned before every `continue` statement for which the `do` statement is the continue target.
