When an object is created in Java, as in “new Date()”, the object is stored in a part of memory called Heap. the object is stored in a part of memory called Heap. When we assign the object to a variable as in “date = new Date()”, what we store in date is the Heap memory address where the object is.