Monday, August 9, 2010

Garbage Collection: CardBoard.java

Courtesy of SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065) (9780071591065)
Chapter 3, Question 1
















When // doStuff is reached, how many objects are eligible for GC?

Two
1. CardBoard
2. It's associated Short object

No comments:

Post a Comment