---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 13 Edition"
java_version: 13
chapter: "Chapter 14. Blocks and Statements"
section: "14.1"
heading: "14.1. Normal and Abrupt Completion of Statements"
parent: "Chapter 14. Blocks and Statements"
source: https://docs.oracle.com/javase/specs/jls/se13/html/jls-14.html#jls-14.1
id: "14.1"
url: https://jvm.obfuscated.software/jls/se13/14.1.html
raw: https://jvm.obfuscated.software/jls/se13/14.1.md
---

# 14.1. Normal and Abrupt Completion of Statements

Every statement has a normal mode of execution in which certain computational steps are carried out. The following sections describe the normal mode of execution for each kind of statement.

If all the steps are carried out as described, with no indication of abrupt completion, the statement is said to *complete normally*. However, certain events may prevent a statement from completing normally:

- The `break` ([§14.15](14.15.md)), `continue` ([§14.16](14.16.md)), and `return` ([§14.17](14.17.md)) statements cause a transfer of control that may prevent normal completion of statements that contain them.
- Evaluation of certain expressions may throw exceptions from the Java Virtual Machine ([§15.6](15.6.md)). An explicit `throw` ([§14.18](14.18.md)) statement also results in an exception. An exception causes a transfer of control that may prevent normal completion of statements.

If such an event occurs, then execution of one or more statements may be terminated before all steps of their normal mode of execution have completed; such statements are said to *complete abruptly*.

An abrupt completion always has an associated *reason*, which is one of the following:

- A `break` with no label
- A `break` with a given label
- A `continue` with no label
- A `continue` with a given label
- A `return` with no value
- A `return` with a given value
- A `throw` with a given value, including exceptions thrown by the Java Virtual Machine

The terms "complete normally" and "complete abruptly" also apply to the evaluation of expressions ([§15.6](15.6.md)). The only reason an expression can complete abruptly is that an exception is thrown, because of either a `throw` with a given value ([§14.18](14.18.md)) or a run-time exception or error ([§11 (*Exceptions*)](11.md), [§15.6](15.6.md)).

If a statement evaluates an expression, abrupt completion of the expression always causes the immediate abrupt completion of the statement, with the same reason. All succeeding steps in the normal mode of execution are not performed.

Unless otherwise specified in this chapter, abrupt completion of a substatement causes the immediate abrupt completion of the statement itself, with the same reason, and all succeeding steps in the normal mode of execution of the statement are not performed.

Unless otherwise specified, a statement completes normally if all expressions it evaluates and all substatements it executes complete normally.
