There is this code:
public class Main { public static void main(final String[] args) throws Exception { System.out.print(\"1\"); doAnythi
Stack overflow.
You are only printing on exception,in the meantime the program recurses into overflow.
At which point this occurs depends on individual systems, memory, etc.
What is the purpose of the program?