While looking over a source file, i saw two ways of array initialization. I wonder is there a difference between
int[] value = new int[0];
and<
Now the proof (and an exercise):
Create two classes, each containing one declaration. Compile them to get .class files. On each of the two created files, do:
javap -c yourClass
To see the bytecode.
Now you can answer your own question.