+ 2

Must the main function in Java always take an array of strings named args?

12th Jun 2019, 11:21 PM
Vincent Maestro
Vincent Maestro - avatar
3 Answers
+ 15
No..You can take another name.
13th Jun 2019, 2:12 AM
Priyanka♄
+ 1
It must take array of Strings, but name can be anything. It also can be String... args instead of String[] args
13th Jun 2019, 5:21 AM
BlazingMagpie
BlazingMagpie - avatar
+ 1
Thanks guys.
13th Jun 2019, 8:17 AM
Vincent Maestro
Vincent Maestro - avatar