Winston Gutkowski wrote:
Priyatham Anisetty wrote:what is difference between String[] string1 and String string2[].
Absolutely nothing (and I wish to God Java had never allowed the second style).
For the most part, I agree... however...
I think that it is somewhat relevant when multiple variables are declared at the same time... for example, with the first syntax, I can declare three string arrays like this....
which I guess is shorter than with the second syntax....
However, with the second syntax, I can mix arrays with non-arrays...
Henry