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

# 14.2. Blocks

A *block* is a sequence of statements, local class declarations, and local variable declaration statements within braces.

```
Block:
  { [BlockStatements] }

BlockStatements:
  BlockStatement {BlockStatement}

BlockStatement:
  LocalVariableDeclarationStatement
  ClassDeclaration
  Statement
```

A block is executed by executing each of the local variable declaration statements and other statements in order from first to last (left to right). If all of these block statements complete normally, then the block completes normally. If any of these block statements complete abruptly for any reason, then the block completes abruptly for the same reason.
