What do you call the Java class that has the main method?

Started by
6 comments, last by Nercury 11 years, 2 months ago

I learned programming by just calling it the "class that has the main method" which sounds cumbersome. Is there a word that describes this definition in the programming world?

Another question, what do you name your java class that has the main method so people can find which java class is the entry point a lot easier?

Advertisement

I use the following naming scheme.

ProjectRootPackage.ProjectNameBootstrap

E,g .: If I had a project named Test and its root package its named com.bubsy.test I would the class which have the main method com.bubsy.test.TestBootstrap

"Fred".

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

When I am forced to use Java, I refer to it as the "Main Class" and name it "Main".

Using something more is overkill, and it's consistent with naming schemes for every other language.

[size="1"]And a Unix user said rm -rf *.* and all was null and void...|There's no place like 127.0.0.1|The Application "Programmer" has unexpectedly quit. An error of type A.M. has occurred.
[size="2"]

When I am forced to use Java, I refer to it as the "Main Class" and name it "Main".

Using something more is overkill, and it's consistent with naming schemes for every other language.

Thanks

I usually refer to it colloquially as "the main class" but I typically name the class Program and/or I include the name of the application, e.g. ChatClientProgram.

I have seen people name it Application, App and Main. I happen to like Program and this is what Visual Studio names the equivalent class when making a new C# application.
The Java specification calls the it the "initial class", but I rarely hear people refer to it as such in conversation.
It is your project's boot entry point, containing the most unsharable code specific to this project only. You might as well call it MyKillerApp.

This topic is closed to new replies.

Advertisement