What is the difference? There isn't one as far as the compiler is concerned.
Java allows some flexibility in the style used to declare arrays (anywhere).
String[] args
String args[]
String []args
String args []
These are all equivalent and allowed in Java.
I prefer the
String[] args style for all of my array declarations. I feel that it's more consistent with the normal identifier declaration style:
[ type ] [ identifier ] - Some type referred to by some identifier.
String[] args - A String array referred to by the identifier
args.