Types of Variables In java Programming
1) Primitive variables : Primitive variables can be used to represent primitive values.
2) Reference variables : Reference variables can be used to refer objects.
Based on the purpose and position of declaration all variables are divided into the following 3 types
a) Instance variables
b) Static variables
c) Local variables