Saturday, January 26, 2013

SIMPLE VIRUS

This is the simple .java virus .Very amazing on how this work .

public class TestOut
{
public static void main(String[] args)
{
int a=1;
while(a<=10)
System.out.println(a);
}
}

you try to run this on the command or simple java compile

javac TestOut.java

java TestOut >TestOut.txt


this type of virus is harmless so you may try to run it for fun and check your free space memory decrease per time

how to remove just stop the program and then .delect file TestOut.txt

1 comment: