Objects and References
.equals( ) compares if the objects have the same content!
‘==‘ compares if these references point to the same place in memory!
Box box1 = new Box(8, 5, 7);
Box box2 = new Box(8, 5, 7);
Previous slide
Next slide
Back to first slide
View graphic version