+ 4
What is java args?
What is it?
4 Answers
+ 17
//I guess "public static void main(String args []){}"
1) args is String array which stores arguments passed through command line
//here on SL it have no purpose as U are not giving inputs through command line , U will be using it while working with command prompt
2)btw array can take other name also , so U can use some other name also in place of "args" , like U can use "hy" , "hacker" , "hello3" , "whats_up" etc
//âșâ
+ 3
Gaurav Agrawal Thanks you!
i was talking bout public static void main(String args[ ]){}
+ 3
String[] args is a collection of strings, separated by a space.
The arguments of type String that your Java application accepts when you run it.
+ 1
args is the name of an array of type String