I did a code that have two arrays, one I call array1 and the other array2, two of them two-dimensional. What's the difference between the 2 implementations bellow? Is there any difference? Because I've never seen this kind of implementation where you inicialize the array without passing the number of colums: byte array12 = new byte;
I saw this only in the book about certification Java.
Being more especific...
the same of it?
Internaly that declaration byte array1 = new byte; creates an array of arrays?
Yes. THose two are equivalent. The first is obviously easier to read and write.
The reason you only see the later in a certification book is that people don't generally use that approach in real life. The certification is testing a deeper understanding to see if you know what the first approach (convenience shortcut) is doing.