+ 1

What array of strings actually gets passed to the main() method?

I'm confused as to what exactly gets passed to the main() method in Java! Is it user input, etc.? Thanks!

13th Jan 2018, 7:54 PM
Erik Johanson
Erik Johanson - avatar
2 Answers
+ 3
In that example they are just telling you that an array of String type is being passsed as a parameter. String [] the brackets indicate an array of type String. You can pass any data type as parameters in a method.
18th Jan 2018, 12:32 AM
Tim Millar
Tim Millar - avatar