I can imagine 3 type of visibility for variables (but I think there are more):
Variable is used within a method and any changes of the value of this variable ar
1: just something like int i; within the method
int i;
2: use the private modifier or protected modifier
private
protected
3: use public
public