Sign in to follow this  
Nicholas Kong

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

Recommended Posts

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?

Edited by warnexus

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this