0

[DUPLICATE] What does "(String[] args)" in main method means??

9th Nov 2017, 2:23 PM
Gaurav Thakur
Gaurav Thakur - avatar
7 Answers
+ 17
"args" is just the method parameter name. You can give it a different name, just like how you name your variables.
9th Nov 2017, 2:35 PM
Hatsy Rei
Hatsy Rei - avatar
+ 16
Array of strings as main method parameter, to receive command line arguments if any is provided during program execution. https://stackoverflow.com/questions/890966/what-is-string-args-parameter-in-main-method-java
9th Nov 2017, 2:28 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
what is args
9th Nov 2017, 2:29 PM
Gaurav Thakur
Gaurav Thakur - avatar
+ 1
ok thanks !
9th Nov 2017, 2:37 PM
Gaurav Thakur
Gaurav Thakur - avatar