For example
int a,b,c,d,e,f,g,h,.........................;
a=b=c=d=e=f=g=h=.............................=1;
so, how long it can be possible in java....
For example
int a,b,c,d,e,f,g,h,.........................;
a=b=c=d=e=f=g=h=.............................=1;
so, how long it can be possible in java....
Well, let's try it out!
codegen.sh:
WARNING: don't run it in your directory with all the *.java answers for StackOverflow!!!
test.sh:
Example Chain10.java:
By simple manual bisection, it's easy to find the point where it fails. On my setup, it fails for N=2075 with the default settings. The compiler crashes with the following message:
I think that you can easily correct this by increasing the size of the stack for
javac.