~Sanjeev Singh<br />SCJP 1.5
The answer for this question has been nicely expalined by Bu in one of the previous threads.
all events occur in real time
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Its a j a v a
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
The bottom line is that the real exam won't test you how the wrapper pool or the String constant pool interacts with the G.C. On the real exam, G.C. questions will always use non-String and non-wrapper objects.
all events occur in real time
Originally posted by Bert Bates :
The bottom line is that the real exam won't test you how the wrapper pool or the String constant pool interacts with the G.C. On the real exam, G.C. questions will always use non-String and non-wrapper objects.
Originally posted by Bu.
At line one, two objects are eligible, the first simple card board and its associated Short object with the value 5.
But how many are eligible on line two?
The second card board of course, but no Short object, as the second card board only has a reference to the 5 in the pool???