the question on garbage collection on the first exam goes something like (I have change the names of the objects to protect the innocent!)
with the following piece of code when do o1 and o2 become eligible for collection?
Am I right in thinking
After line 2, no objects may be gc'd
after line 3, what was o1, is now referring to same object as o2, nobody is referring to o1 created by line 1 (1 object is eligble for collection)
after line 4 o2 is refering to nothing, o1 is still a valid reference to the object created on line 1 (still only one object eligible for gc)
Is this a fair comparison with the question on the mock.
Also, the first question on the second mock uses an unitialized primitive!! tut tut!