Just noticed in ByteArrayOutputStream
, the toByteArray()
is declared as,
public synchronized byte toByteArray()[];
What's the difference between this declaration and the following one?
public synchronized byte[] toByteArray();
Just noticed in ByteArrayOutputStream
, the toByteArray()
is declared as,
public synchronized byte toByteArray()[];
What's the difference between this declaration and the following one?
public synchronized byte[] toByteArray();
In this case, none.
If you had declarations:
byte[] a, b;
byte c[], d;
then a
, b
, and c
are byte[]
, and d
is byte
.
There is no difference, though convention amongst programmers strongly prefers the latter.