There is no difference. But int[] arrayit is considered idiomatic Java.
The logic is that it []is part of a type (an array is a separate type from a scalar), intand therefore []must live together. It is also consistent with the designation, for example. return types:
int[] foo() {
...
int[] x = new int[5];
return x;
}