Whats this syntax useful for :
function(String... args)
Is this same as writing
function(String[] args)
<
The difference is only when invoking the method. The second form must be invoked with an array, the first form can be invoked with an array (just like the second one, yes, this is valid according to Java standard) or with a list of strings (multiple strings separated by comma) or with no arguments at all (the second one always must have one, at least null must be passed).
It is syntactically sugar. Actually the compiler turns
function(s1, s2, s3);
into
function(new String[] { s1, s2, s3 });
internally.