The moment I read garbage collection analogy with ktlk loose ends in your post, I wrote this Mudraji... π€£ What would you call me... π Totally gone case due to KTLK? π€ͺ
---------------------------------------------------------------------------------------------------------------------------------
import java.io.IOException;
import java.lang.*
public class KTLK
{
KTLK()
protected void finalize()
{
System.out.println("Garbage Collection Performed");
}
}//class KTLK ends
public class KTLK_SEASON_1
{
public static void main(String[] args)
{
int x =1;
while ( x >0)
{
try
{
KTLK track = new KTLK();
System.out.println("Call System.gc() when handling this track is no longer possible");
track = null; // Breaking all the references to track
Runtime.getRuntime().gc();
}
catch (Exception e)
{
System.err.println("Error: " + e.getMessage());
e.printStackTrace();
}
finally
{
System.out.println("Program ran successfully!");
}
x++;
}
}//main() ends
}//class KTLK_SEASON_1 ends
---------------------------------------------------------------------------------------------------------------------------------
π€£
I think KP ji used an infinite loop that generates a new track and eventually pushes into garbage.
some think like bold and redππ
and finally some one had to call control+c to stop all this...
comment:
p_commentcount