Which is the earliest line in the following code after which the object created on the //1 can be garbage collected, assuming no compiler optimizations are done?
public class NewClass
{
static String enterTheDragon
() {
b = a; // 4
d = a; // 5
return c; // 6
}
public static void main
(String args
[]) {
String s
= enterTheDragon
(); // 7 }
}
la respuesta es la linea 5 pero no entiendo porque, necesitaria q alguien me lo explicara q es exactamente lo q hace el garbage collector, gracias
Mod: Los códigos deben ir en GeSHi