I'm going with D. Only one of the t1 objects is getting the boot, while the other one's probably sitting there, sipping coffee and reading the newspaper. Java, you so crazy.
Gotta be C, right? I mean, if the program is printing 'GC', that must mean the garbage collector is running, but not actually collecting anything. Classic Java move.
I see your point, it does seem like a Java trick. 'GC' could just be a signal that the garbage collector is being called, not actually collecting anything.
Hmm, this one's tricky. I'd say B, because clearly both t1 references are gone, so they should be eligible for collection. But who knows, Java can be a real mystery sometimes.
Ryann
11 months agoJame
11 months agoBeckie
11 months agoDorathy
10 months agoDorathy
10 months agoDorathy
11 months agoNickolas
11 months agoFranchesca
11 months agoViola
11 months agoAide
11 months agoRoy
11 months agoCarli
11 months agoVelda
11 months agoNichelle
11 months agoEleonore
11 months agoArtie
11 months ago