+ 1
What is the difference between String...args vs String [] args(as parameters in main) in java ?
7 ответов
+ 2
varargs ... must be last in order of parameters
cant use two varargs ... in one method parameters
+ 2
sure, not in main()
+ 1
difference is in methods with different types of parameters, you can still use varargs ... but there it depends of order of parameters, compared to String[] which is independed of parameter order.