The difference is that you have multiple ads. Otherwise, it is a matter of taste.
int[] a, b[]; // a is int[], b is int[][] int a[], b[]; // a is int[], b is int[]
Java uses int[] . The older int a[] should make C programmers happy.;)
Vaguely you can write the following, due to incomprehensible reasons for backward compatibility. Do not do that.
public int method()[] { return new int[6]; }
source share