Variable is the basically identifier, which item of data named by an identifier. Each variable has a type, such as int or Object, and a scope. For example : Class variable,Instance variable, local variable.