+ 1
In java why is string[] args used in here: public static void main(string[] args) ??? What if we don't use it??
2 ответов
+ 2
in addition to what's been said above.
when your code runs, the jvm looks for a main function with (String[] args), without them your code will not run.