Skip to content

Glossary: Java Basics

Block

Also written: blocks, braces, body

A group of statements between braces `{ }`, such as a method's body or the code under an `if` or a loop. A variable declared inside a block exists only there.

Where the book teaches it

Related terms

ScopeStatementMethod