Nothing except that when you're working with arrays you really need to understand what Java is doing with the array, or you can end up with an unexpected output. This is true for the same exact code. If the dev understands it it works well if not it doesn't.
Huh? I honestly can't think of any way to misuse arrays in Java. They're bounds checked so it's not possible (at least normally) to have any memory violation.
6
u/dov1 Jul 20 '18
Nothing except that when you're working with arrays you really need to understand what Java is doing with the array, or you can end up with an unexpected output. This is true for the same exact code. If the dev understands it it works well if not it doesn't.
Edit: disclaimer, Java developer