+ 2

why main method is choosen as the entry point?Is there any special internal coding in main method?

16th Jul 2016, 9:53 AM
Jyoti Sheokand
Jyoti Sheokand - avatar
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
16th Jul 2016, 12:41 PM
Jyoti Sheokand
Jyoti Sheokand - avatar
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.
16th Jul 2016, 11:15 AM
₏„~RTH~₏„
₏„~RTH~₏„ - avatar
0
Not just java, I think to do everything we need to know where to begin.
16th Jul 2016, 12:16 PM
WPimpong
WPimpong - avatar
0
It means java can't run without main() method ??
18th Jul 2016, 6:50 PM
AnsHuman Aaditya
AnsHuman Aaditya - avatar