study guides for every class

that actually explain what's on your next test

Enclosing brackets

from class:

AP Computer Science A

Definition

Enclosing brackets, also known as curly braces ({ }), are used in programming languages to group multiple lines of code together and define what constitutes the body of an if statement (or other control structures). The opening brace ({) marks the beginning of the block, and the closing brace (}) marks its end.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.