3 ms·
> Does the Java compiler optimize this to be equivalent? No, it can't. `byte[][]` is an array of arrays, and that fact is user-visible because you can access a
by munificent 8y ago
> Does the Java compiler optimize this to be equivalent?
No, it can't. `byte[][]` is an array of arrays, and that fact is user-visible because you can access any of the individual arrays, pass it to other functions, etc.
- saagarjha 8y agoBut you can do this is C, which has flat arrays. To “access” an individual array just grab the base address+array sizeelement sizeindex.