Variables r When the declaration is made, memory space is llocated to store the values of x and y x and y are called variables. a variable has three properties: aA memory location to store the value a The type of data stored in the memory location, and a The name used to refer to the memory location. r Sample variable declarations: int xi int v, W, y C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 3-4© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 3 - 4 Variables When the declaration is made, memory space is allocated to store the values of x and y. x and y are called variables. A variable has three properties: A memory location to store the value, The type of data stored in the memory location, and The name used to refer to the memory location. Sample variable declarations: int x; int v, w, y;