PPT Slide
Review of the normal case
Remember the general pattern of our previous example:
box2 = new Box(8, 5, 7);box1 = box2;
System.out.println(box1 = = box2);
// Does box1 reference the same
// object that box2 references?
System.out.println(box1.equals(box2));
// Does box1 reference an object that has
// the same contents// as the object referenced by box2?