public static void main(String[] args)
What is String[] args?
When would you use args?
public static void main(String[] args)
What is String[] args?
When would you use args?
args is a name of a String array. Is compulsory in your main method in java in order to receive the parameters for the input.
If your application receives some inputs, they will be loaded in args, each of them as a String inside the array in the given order. Otherwise, args will be a empty array.
More information here
These are the arguments of type String that your Java application accepts when you run it. They are console parameters given by the user.