+ 1
What is the use of String[] args? Why does main method takes it?
2 Answers
+ 1
To accept input through command line arguments..
Edit : Shubhdeep Singh
https://www.tutorialspoint.com/Java-command-line-arguments.
+ 1
It is the list of command line parameters given. They can be used to control the behavior, give a folder or file to use in your program etc.