 Variables are identifiers associated with values.They are declared by writing the variable's type and name, and are optionally initialized in the same statement.Declare

int myInt; // Declaring an uninitialized variable called 'myInt', of type 'int'


Assigning

int myInt; // Declaring an uninitialized variable
myInt = 35; // Assigning the variable a value


Initialize

int myInt = 35; // Declaring and initializing the variable


Multiple variables of the same type can be declared and initialized in one statement.