Why calling main() method from main() gives StackOverflowError in java? -


this question has answer here:

i new java. had doubt in java since main() static in java, why can't call main().

class test {     public static void main(string args[]) {         main(null);     } } 

once tried above code got stackoverflowerror. why did error main() static method(also method)? part of memory code filling up? please descriptive in answer.


Comments

Popular posts from this blog

.net - Generate assembly with Roslyn -

ZeroMQ on Windows, with Qt Creator -

batch file - filebot superstrict script: need tiny video sample or other solution -