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
4 months agoJame
4 months agoBeckie
5 months agoDorathy
3 months agoDorathy
4 months agoDorathy
4 months agoNickolas
5 months agoFranchesca
5 months agoViola
5 months agoAide
5 months agoRoy
4 months agoCarli
4 months agoVelda
4 months agoNichelle
4 months agoEleonore
5 months agoArtie
5 months ago