usefulin java to write an assignment statement like strings "kilo"meters"this statement defines variable that references objects of the string classand assigns it the string "kilometers(we will discuss assignment statements and expressions such as that above in more detail later in this every object in java is assumed to have built-in method tostring(that returns string associated with the object this description of the string class should be sufficient for most uses we discuss the string class and its "relativethe stringbuffer class in more detail in section object references as mentioned abovecreating new object involves the use of the new operator to allocate the object' memory space and use the object' constructor to initialize this space the locationor addressof this space is then typically assigned to reference variable thereforea reference variable can be viewed as "pointerto some object it is as if the variable is holder for remote control that can be used to control the newly created object (the devicethat isthe variable has way of pointing at the object and asking it to do things or give us access to its data we illustrate this concept in figure figure illustrating the relationship between objects and object reference variables when we assign an object reference (that ismemory addressto reference variableit is as if we are storing that object' remote control at that variable