what are instance variables in java?
Instance variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed. ... Access modifiers can be given for instance variables. The instance variables are visible for all methods, constructors and block in the class.