---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 20 Edition"
java_version: 20
chapter: "Chapter 16. Definite Assignment"
section: "16.2.13"
heading: "16.2.13. break, yield, continue, return, and throw Statements"
parent: "16.2. Definite Assignment and Statements"
source: https://docs.oracle.com/javase/specs/jls/se20/html/jls-16.html#jls-16.2.13
id: "16.2.13"
url: https://jvm.obfuscated.software/jls/se20/16.2.13.html
raw: https://jvm.obfuscated.software/jls/se20/16.2.13.md
---

# 16.2.13. `break`, `yield`, `continue`, `return`, and `throw` Statements

- By convention, we say that V is [un]assigned after any `break`, `yield`, `continue`, `return`, or `throw` statement ([§14.15](14.15.md), [§14.21](14.21.md), [§14.16](14.16.md), [§14.17](14.17.md), [§14.18](14.18.md)).

  The notion that a variable is "[un]assigned after" a statement or expression really means "is [un]assigned after the statement or expression completes normally". Because a `break`, `yield`, `continue`, `return`, or `throw` statement never completes normally, it vacuously satisfies this notion.

- In a `yield` statement with expression `e`, or a `return` statement with expression `e`, or a `throw` statement with expression `e`, V is [un]assigned before `e` iff V is [un]assigned before the `yield`, `return`, or `throw` statement.
