+ 1

In java why is string[] args used in here: public static void main(string[] args) ??? What if we don't use it??

13th Dec 2019, 9:35 AM
Akansha Roy
1 Réponse
+ 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.
13th Dec 2019, 10:23 AM
Bahhaⵣ
Bahhaⵣ - avatar