Hi, Where do static variables (yes, they must be instance variables) live? As the book says, instance variables live IN the object on the heap, static variables are shared with all the objects of the very class, so where are they?
On the heap, in the instance of the Class object created to represent the class when it gets loaded? Here I am assuming you are writing about the class variables. The objects referred to by those class variables (if they are reference variables) are just regular objects on the heap. [ October 11, 2006: Message edited by: Barry Gaunt ]