Welcome to the Ranch Erico.
The second question is very bad worded, because the g.c. will only be invoked for certain when the free heap space is running out. Probably the mere execution of this program is not going to fill the heap.
The exam will ask somethig like: at what line the object pointed by variable v is first made eligible for g.c.? Well, they might be using a better English than me. :roll: