Some characters are used as separators
() parenthesis
{} Braces
[] Brackets
; semicolon
, Comma
. Period
In this video we will see what is the use of curly braces in java
braces are used as follow:
1.Used to contain the values of automatically initialized arrays.
2.Also used to define a block of code for:
classes
methods
local scopes