The braces in the program form a block that groups the components of the program. In Java, each block begins with an opening brace ({) and ends with a closing brace (}).
Every class has a class block that groups the data and methods of the class.
Every method has a method block that groups the statements in the method.
Blocks can be nested, meaning that one block can be placed within another, as shown in the following code.