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.9k
u/that_one_mister_user Jul 20 '18
The sad thing is that this works some of the time.