How simple does it have to be???
How simple does it have to be???
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
How simple does it have to be???
Originally posted by Davy Kelly:
thanks guys,
but my main concern was:
so its the objects not the variables that get GC'd?
Davy
How simple does it have to be???
Q36
How many objects are eligible for garbage collection once execution has reached the line labeled Line A?
String name;
String newName = "Nick";
newName = "Jason";
name = "Frieda";
String newestName = name;
name = null;
//Line A
Answers
a 0
b 1
c 2
d 3
e 4
I said 2
How simple does it have to be???
How simple does it have to be???
Mike Gershman
SCJP 1.4, SCWCD in process
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|