+ 1

[DUPLICATE] What's string[ ] args

27th Mar 2018, 11:34 AM
harsha reddy
harsha reddy - avatar
2 Answers
+ 3
In Java 'args' contains the supplied command-line arguments as an array of String objects. In other words, if you run your program as 'java MyProgram abc xyz' then 'args' will contain ["abc", "xyz"]. When a java class is executed from the console, the main method is what is called.
27th Mar 2018, 12:38 PM
Baraa AB
Baraa AB - avatar
0
what is Google?!!!!😑 btw it's an array of strings that takes the 'console arguments'.
27th Mar 2018, 11:38 AM
Farshaad Heydari
Farshaad Heydari - avatar