Quote (tt_toby @ Apr 26 2013 11:19am)
Thanks.
1. Why has the main() method to be part of a class though, if there's no object to be described by the class?
2. What IS the class with the main method? In terms of the metaphor, it's not a factory for the creation of anything.
The main method the starting point of your application. Every application has to have a main method.
When you're creating a debug configuration, you have to start somewhere and it's a class.
For example, if you run java from command line, you have to pass it a class (the main class). And it finds the main method in that class to use it as the starting point.
The class with the main method is referred to as the "main class" and usually has only the main method in it.
This post was edited by labatymo on Apr 26 2013 10:14am