Courtesy of SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065) (9780071591065)
Chapter 3, Question 12
If you trace this code by hand, the program will output 4 4.
To get a visual idea of how arrays and objects look in memory, please see graphic below, courtesy of Courtesy of Head First Java, 2nd Edition (0596009208), Page 59
To understand how an array of object references look in memory, please refer to below graphics, Courtesy of Head First Java, 2nd Edition (0596009208), Page 60