Thursday, January 20, 2011

Instance Variables

Instance variable is a variable whose separate copy is available to every object. If the instance variable of an object is modified it will not effect the other object.

When the programmer does not initialize the instance variables java compiler writes code in the class to initialize the instance variables with default values.

No comments:

Post a Comment