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

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -