Walter van Iterson

Greenhorn
+ Follow
since Jan 21, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Walter van Iterson

Chapter 3, answer to question 7 (Page 220)

G is incorrect: Apart from the three Wind objects that are ready to be garbage collected, there is also an unreferenced String object (value "1 2", the one that was created in the System.out.println - line). So, there are 4 objects eligible for garbage collection.

The valid answers are A and B, or the text of option G should read "Three objects of type Wind are eligible for garbage collection"