variablesvariable modifiers in some caseswe may not be allowed to directly access some of the instance variables for an object for examplean instance variable declared as private in some class is only accessible by the methods defined inside that class such instance variables are similar to device parameters that cannot be accessed directly from remote control for examplesome devices have internal parameters that can only be read or assigned by factory technician (and user is not allowed to change those parameters without violating the device' warrantywhen we declare an instance variablewe can optionally define such variable modifierfollow that by the variable' type and the identifier we are going to use for that variable additionallywe can optionally assign an initial value to the variable (using the assignment operator ("="the rules for variable name are the same as any other java identifier the variable type parameter can be either base typeindicating that this variable stores values of this typeor class nameindicating that this variable is reference to an object from this class finallythe optional initial value we might assign to an instance variable must match the variable' type for examplewe could define gnome classwhich contains several definitions of instance variablesshown in in code fragment