public static void main (String args []) - What is the args []?

The args[] means that you can enter command line arguments that will be stored in this array.

If you run your Java program from the command line, you might want to add command line arguments.

This has practical applications in terminal based environments.

Comments