Variable declaration statements
A variable declaration statement can specify a primitive or reference variable.
VariableDeclaration
Primitive type variable declarations
A PrimitiveVariableDeclaration specifies a boolean, decimal, float, integer, or string type variable.
PrimitiveVariableDeclaration
Reference type variable declarations
A ReferenceVariableDeclaration specifies a reference type variable.
ReferenceVariableDeclaration
A variable declaration statement can appear anywhere in a block. Variables declared in a block are scoped to that block and can be used in statements that follow the declaration.