New course! Every coder should learn Generative AI!
Try a free lesson0
Why main method in java takes only an array of String as its parameter?
Why main method in java takes specifically only an array of String as its parameter?
1 Answer
+ 2
Useing an array allows you to pass multiple argument.
Using Strings allows you to easily represent data of almost any data type.
Using a String array allows you to pass multiple argument, each of which can represent data of almost any data type.