Examples:
1234  integral numeric value 
3.14159  decimal numeric value 
"Hello World"  text ("textual value") 
true  logical value 
The type characterizes what you can do with/to the value
Examples:
Value  Characteristic  Type Name  Properties 

1234  integral numeric value  int  add, subtract, multiply, divide 
3.14159  decimal numeric value  float  add, subtract, multiply, divide 
"Hello World"  text ("textual value")  String  concatenate 
true  logical value  boolean  logical operations: AND, OR, NOT 
PiggyBank JohnsPiggy; PiggyBank PetesPiggy; 
Therefore:
The type of JohnsPiggy and PetesPiggy is PiggyBank 
A thing to ponder about... 
In fact, a variables is a storage location inside the computer's memory (RAM  see click here)
Variables are used to hold information (the value is the information !!)

After defining the variable, it can be used as many times as you want...
Correct: .... Define variable x; .... Use variable x; 
INCORRECT: .... Use variable x; .... Define variable x; 
The syntax (language rule) to define a variable is as follows:
typeName variableName ; 
float pi; // type: float, name: pi float radius; // type: float, name: radius float area; // type: float, name: area String greeting; // type: String, name: greeting String message; // type: String, name: message PiggyBank JohnsPiggy; // type: PiggyBank, name: JohnsPiggy PiggyBank PetesPiggy; // type: PiggyBank, name: PetesPiggy 
pi = 3.1415926535; 
The symbol = denotes the assignment operation.
The expression:
will store the value 3.1415926535 into the variable pi
radius = 2; 
The expression:
will store the value 2 into the variable radius
area = pi * radius * radius; 
The symbol * denotes the multiplication operation.
The expression:
will:

Example:
float pi; pi = 3.1415926535; 
float pi; pi = 3.1415926535; 
Can be shorted as:
float pi = 3.1415926535; 
Greeting1 g void 101dalmatians Hello, World