What is arg in java?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is arg in java??

10th Feb 2018, 7:33 AM
khushi agarwal
khushi agarwal - avatar
3 Answers
+ 19
https://stackoverflow.com/questions/890966/what-is-string-args-parameter-in-main-method-java What is "String args[]"? parameter in main method Java - Stack ... https://stackoverflow.com/questions/1672083/why-is-string-args-required-in-java Why is String[] args required in Java? - Stack Overflow https://www.quora.com/What-does-the-String-args-in-a-Java-main-method-actually-mean What does the 'String[ ] args' in a Java main method actually mean ...
10th Feb 2018, 8:57 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
If you're talking about the args of the main function, this parameter is a String array containing the program arguments for the jvm.
10th Feb 2018, 7:43 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
thanks
10th Feb 2018, 9:40 AM
khushi agarwal
khushi agarwal - avatar