+ 1
Why do we need" String array[]" ??
in the arguments if main() in java? pls ans ,thanks.
2 Answers
+ 2
simply to store strings type data in array
+ 1
Yes. Command line arguments are stored in this string array.
For example when you execute your application:
java app.jar -test
"-test" can be used in the application to set a variable or other



