[] denotes an array, for example String x = "some value"; String [] x = {"value 1", "value 2", "value 3"};
therefore, in the second case, x [0] gives "value 1". This is basically an array of strings. The second part - who will call the function? Well, this method signature is an input signature and whenever you try to call a class using a java program, it will look for this function to start execution; if he does not find him; he will just throw an error.
Who will pass the vals values ββto the String [] array? java someprogram value1 value2 value3
will automatically fill the array with the corresponding three values. Thus, basically the values ββare populated when they are launched from the command line, and the values ββare passed as parameters for the call.
Hope this clears
source share