+ 2
[DUPLICATE] why main function takes argument "String args[]"
5 Answers
+ 5
It's a placeholder for the default template for console application allowing you to pass values to the program via the command line
+ 1
main function takes argument for its modular processing purpose, like when you drag a file drop on application icon it passes the path of file to args as like as you pass the path in cmd.
0
Brian, does it mean that every main class is ultimately considered as array of strings???
0
it's command line arguments..
- 3
args[] that means programing first focus on it so that in program first call main function then other