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<
Actually there is no difference. It's Syntactic sugar in java array declaration.
The first type declaration is less confusing, at least for me :).
Note: I'm not sure why you given the length as zero while declaring.
If possible, go through https://stackoverflow.com/a/19558179/1927832 for some advantages over another.