+ 2
why main method is choosen as the entry point?Is there any special internal coding in main method?
4 Answers
+ 3
main contains the code of kernal,and kernal activates the system layer and application layer of operating system,,that means main method logically interacts with the operating system,thats why main() is the entry point
0
main method is entry point(like main gate of your house) of your stand alone java application.Having said that it means that if we have a Java project(Not a Web Project) which has many classes in it with lot of code(business logic),you need some starting point such that your code starts executing.main method is this starting point or entry gate,which then can call other classes code.
0
Not just java, I think to do everything we need to know where to begin.
0
It means java can't run without main() method ??