+ 1

[DUPLICATE] What is the purpose of "args"?

args

29th Oct 2017, 5:11 PM
Rapando
2 Answers
+ 13
If talking about the main method, args contains the supplied command-line arguments as an array of String objects. args doesn't necessarily have to be named args (you can name it whatever you want) - though it's best to follow convention. ^^
29th Oct 2017, 5:20 PM
Dev
Dev - avatar
+ 3
thank you for the quick response.....just started learning Java
29th Oct 2017, 5:23 PM
Rapando