Wednesday, August 31, 2011

StackOverflow.java

% cat StackOverflow.java
class StackOverflow
{
public static void main(String[] args)
{
StackOverflow.main(args);
}
}

% javac StackOverflow.java && java StackOverflow 2>&1 | vim -
1:Exception in thread "main" java.lang.StackOverflowError
2: at StackOverflow.main(StackOverflow.java:5)
3: at StackOverflow.main(StackOverflow.java:5)
...
1025: at StackOverflow.main(StackOverflow.java:5)

No comments:

Post a Comment