+ 3

Who call main function?

27th May 2017, 5:41 PM
vishal khandelwal
vishal khandelwal - avatar
2 Answers
+ 2
When we execute our program a main thread is automatically created by the compiler, and that main thread searches for the main function in the program, loads it and works accordingly.
27th May 2017, 6:49 PM
kanishka
kanishka - avatar
+ 2
JVM calls the main method
23rd Jul 2017, 5:23 AM
Steven Cai
Steven Cai - avatar