Often in java code I see people declaring arrays in 2 different ways.
Sometimes it is
Object[] someObjectArray = new Object[...];
And other times I see
Object someObjectArray[] = new Object[...];
I have always used the first one.
I have tried googling this, but I cant seem to word the question correctly, so is there any difference, and of so, how are the two used differently?